Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Lab 2
- void lab2()
- {
- const double KILOS_TO_MILES_RATE = 0.6213712;
- double kilos, miles;
- cout << "Please enter distance traveled in kilos: ";
- cin >> kilos;
- miles = kilos * KILOS_TO_MILES_RATE;
- cout << "You have traveled: \n" << kilos << " kilos \n" << miles << " miles";
- return;
- }
Add Comment
Please, Sign In to add comment