Programme
#include <iostream>
using namespace std;
int main()
{
double distance,speed,time;
cout<<"Enter distance in kilometer:";
cin>>distance;
cout<<"Enter speed of your vehicle (Mph):";
cin>>speed;
{
time=distance/speed;
cout<<"Time required To Reach Distance (in hours) ="<<time<<endl;
}
}
No comments:
Post a Comment