avatar
Velocity Calculator

Guest 1.1K 2nd Nov, 2022

program velocity_calculator;
var ab,t,h: real;
begin
    writeln('Enter AB');
    readln(ab);
    writeln('Enter H');
    readln(h);
    writeln('Enter T');
    readln(t);
    writeln('Velocity of object A is: ', (ab/t + ab/h)/2:0:2);
    writeln('Velocity of object B is: ', (ab/t - ab/h)/2:0:2);
    readln();
end.

// from Nightf4ll wth luv
Pascal
Description

No description

To share this paste please copy this url and send to your friends
RAW Paste Data