I am looking for advice on anything in the code below which could be beneficial in some way. Anything that could be added or changed etc:
/*A car and a train are both traveling toward a railroad crossing on a collision course.
The train is 1200 feet from the crossing and traveling at a constant speed of 40 feet per second.
The car is 1500 feet away and traveling at 55 feet per second.
Write a program to calculate and print each vehicles distance from the crossing at one-second intervals.
If the car gets to the crossing first, print "Made it."
If the train gets to the crossing first, print "Crash".
using namespace std;
int main(int argc, char *argv)
int Train_Distance = 1200, Car_Distance = 1500, Train_Speed = 40, Car_Speed = 55, Seconds_Passed = 0;
std::cout<< "The train and the car race to the cross the intersection. Which will win?"
<< endl << "Seconds Passed = " << Seconds_Passed
<< " Train Distance = " << Train_Distance << " feet"
<< " Car Distance = " << Car_Distance << " feet" << endl;
while(Train_Distance >= 0 && Car_Distance >= 0)
std::cout<< "Seconds Passed = " << ++Seconds_Passed
<< " Train Distance = " << (Train_Distance -= Train_Speed) << " feet"
<< " Car Distance = " << (Car_Distance -= Car_Speed) << " feet" << endl;
string winner = "Made it.";
if(Train_Distance < Car_Distance) winner = "Crash.";
std::cout<< winner << endl;