SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- int kilometers = 0;
- double feet = 0;
- double yards = 0;
- double miles = 0;
- cout << "Welcome to Metric Conversions" << endl;
- cout << "We give you the exact measurements you need to build" << endl;
- cout << "How many kilometers do you need" << endl;
- cin >> kilometers;
- cout << "We will now start the conversions, please standby while we display your conversions on the screen" << endl;
- cout << "-------------------------------------------------------------------------------------------------" << endl;
- feet = kilometers * 3280.83989501312;
- cout << "The number of feet is " << feet << endl;
- yards = kilometers * 1093.6132983377078;
- cout << "The number of yards is " << yards << endl;
- miles = kilometers * 0.621371192237334;
- cout << "The number of miles is " << miles << endl;
- cout << "-------------------------------------------------------------------------------------------------" << endl;
- cout << "Your desired conversions are now displayed on the screen!" << endl;
- cout << "Thank you for stopping by,have a good day!" << endl;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.