Computer Science, asked by armydeepthi, 7 months ago

The driver took a drive to a town 240 km away at the speed of 60km/h.later in the evening,he drove back 20km/h less than the usual speed.using assignment method, write a program to calculate, the total time taken and the average speed​

Answers

Answered by Anonymous
7

Answer:

nt d ,s1,s2,tt,td,t1,t2;

Double avg;

d=240;

s1=60;

s2=60-20;

t1=d/s1;

t2=d/s2;

tt=t1+t2;

td=d*2;

avg = td/tt;

this may help u

Similar questions