Write a program which enters the value of mileage in kilometers and then recalculates it in miles. conversion is as follows: 1 mile=1609.35 meters.
you just write the code
Last edited on
floatkm;//1mile=1.60935km
cout<<"Enterkms:";
cin>>km;
cout<<"kminmiles:"<<km/1.60935<<endl;
Is that true?
Have you tried compiling and running it?