Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long euro,yen,pounds;
- int input;
- cout <<"From euro to dollar insert '1' , from yen to dollar insert '2' , From pounds to dollar insert '3'"<<endl;
- cout<<"= ";
- cin>>input;
- if (input==1){
- cout<<"Insert in 'euro' = ";
- cin>>euro;
- cout<<" = "<<euro*1.253;
- }
- else if (input==2){
- cout<<"Insert in 'yen' = ";
- cin>>yen;
- cout<<" = "<<yen*0.00846;
- }
- else if (input==3){
- cout<<"Insert in 'pounds' = ";
- cin>>yen;
- cout<<" = "<<yen*0.13947;
- };
- system("pause > nul");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement