- 1
Write a program that's allows the user to enter an amount in dollar and then display this value converted to these four units
British pound =1.47 $ French franc=0.172$ German Deutschemark=0.584$ Japanese yen=0.0955$
2 Réponses
+ 7
@mostafa salah you don't realize how copy pasting your homework will adversely affect you in the short and long term.
+ 1
#include <iostream>
using namespace std;
int main(){
float amount;
cout<<"Enter an amount in quot;<<endl;
cin>>amount;
cout<<"British pound="<<amount*1.47<<"\n"<<"French franc="<<amount*0.142<<"\n"<<"German deutschemark="<<amount*0.584<<"\n"<<"Japnese yen="<<amount*0.0955<<endl;
return 0;
}