Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // money as of right now (taka, yen, pounds, pesos, euro)
- /*
- THANK YOU FOR USING MY CODE
- info: Usd coverter to diffrent money types (says so above)
- */
- // if ur using my pastebin THANK YOU ALOT!!
- #include <iostream>
- int main() {
- double Usd;
- std::cout << "Enter USD here: ";
- std::cin >> Usd;
- int choice;
- std::cout << "Here are your options\n";
- std::cout << "1:taka 2:yen 3:pounds 4:pesos 5:euro\n";
- std::cout << "What would you like to convert it to: ";
- std::cin >> choice;
- switch(choice){
- case 1:
- std::cout << "The Usd You Entered to taka is: " << Usd * 109.68;
- break;
- case 2:
- std::cout << "The Usd You Entered To Yen is: " << Usd * 147.10;
- break;
- case 3:
- std::cout << "The Usd You Entered To Pounds is: " << Usd * 0.79;
- break;
- case 4:
- std::cout << "The Usd You Entered To Pesos is: " << Usd * 17.13;
- break;
- case 5:
- std::cout << "The Usd You Entered To Euro is: " << Usd * 0.91;
- break;
- default:
- std::cout << "Please Enter a Correct Number";
- break;
- }
- return 0;
- }
Advertisement
Comments
-
- if u dont have a compiler to use i use this one https://cpp.sh and ty :D
Add Comment
Please, Sign In to add comment