Computer Science, asked by DrArrynMorgan, 11 months ago

The relative velocity of two trains travelling in opposite directions is calculated by adding their velocities. In case, trains are travelling in the same direction, the relative velocity is the difference between there are velocities. Write a program to input the velocities and length of the trains. Write a menu driven program to calculate the relative velocities and the time taken to cross each other by indicating 1 for same direction and 2 for opposite direction.

Answers

Answered by pcmbc43
4

Answer:

I am uploading the picture please check it out

Attachments:

gaurav7397: clearly nahi hai sir
Similar questions