#include <iostream.h>
#include <conio.h>
main()
{
int spm, mph;
double spmRemainder, minInHour = 60, secInHour = 3600;
cout << "Please enter the speed in miles per hour: ";
cin >> mph;
spm = secInHour / mph;
spmRemainder = secInHour / mph;
cout << "The speed of in minutes and seconds per mile is: " << spm << " minutes and " ;
cout << spmRemainder << "seconds.";
getch();
}
I have having trouble with this problem. Can you guys advise? I am not sure I am doing this right but this is what I have now. I searched around there was one using while loop. I am not sure if its necessary. I am using Borland btw. Thanks in advance