#include<iostream>
using namespace std;
int main()
{
double distance, time, speed;
cout<<"Enter the distance traveled in miles: ";
cin>>distance;
cout<<"Enter the speed of vehicle (mph): ";
cin>>speed;
time = distance/speed;
cout<<"Time required to reach destination: "<<time<<"hours."<<endl;
}
OUTPUT
Enter the distance traveled in miles: 100
Enter the speed of vehicle (mph): 10
Time required to reach destination: 10hours.
GOOD WORK
ReplyDelete