Advertisement
Guest User

convert from euro or yen to dollar program , made in c++

a guest
Nov 21st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     long euro,yen,pounds;
  6.     int input;
  7.     cout <<"From euro to dollar insert '1' , from yen to dollar insert '2' , From pounds to dollar insert '3'"<<endl;
  8.     cout<<"= ";
  9.     cin>>input;
  10.     if (input==1){
  11.         system("cls");
  12.     cout<<"Insert in 'euro' = ";
  13.     cin>>euro;
  14.     cout<<" = "<<euro*1.253;
  15.     }
  16.     else if (input==2){
  17.         system("cls");
  18.     cout<<"Insert in 'yen' = ";
  19.     cin>>yen;
  20.     cout<<" = "<<yen*0.00846;
  21.     }
  22.     else if (input==3){
  23.         system("cls");
  24.     cout<<"Insert in 'pounds' = ";
  25.     cin>>yen;
  26.     cout<<" = "<<yen*0.13947;
  27.     };
  28.     system("pause > nul");
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement