编程一小时
发表在每日签到帖
2019-12-31
是否精华
是
否
版块置顶:
是
否
#include<iostream>
using namespace std;
void main()
{
do
{
long double rmb;
std::cout<<"请输入您想要兑换的人民币钱数:"<<ends;
std::cin>>rmb;
long double my,ry,oy,yb,hy,gb,adlyy,jndy;
my=rmb*0.1422;
ry=rmb*15.4483;
oy=rmb*0.1286;
yb=rmb*0.1101;
hy=rmb*167.4536;
gb=rmb*1.1126;
adlyy=rmb*0.2096;
jndy=rmb*0.1889;
std::cout<<" "<<endl;
std::cout<<"您可以兑换各国货币的列表如下:"<<endl;
std::cout<<" "<<endl;
cout<<"人民币:"<<rmb<<endl;
cout<<"美元:"<<my<<endl;
cout<<"日元:"<<ry<<endl;
cout<<"欧元:"<<oy<<endl;
cout<<"英镑:"<<yb<<endl;
cout<<"韩元:"<<hy<<endl;
cout<<"港币:"<<gb<<endl;
cout<<"澳大利亚元:"<<adlyy<<endl;
cout<<"加拿大元:"<<jndy<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
}while(9);
}
首页上一页 1 下一页尾页 1 条记录 1/1页