You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
356 B
18 lines
356 B
#include<iostream>
|
|
#include<cmath>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int money;
|
|
cout<<"money=";
|
|
cin>>money;
|
|
if(money<100000) cout<<"ÀæÊ÷=" <<money/500 <<"¿Ã" <<endl;
|
|
else
|
|
{
|
|
cout<<"ÀæÊ÷="<<floor(money*0.3/500)<<"¿Ã" <<endl;
|
|
cout<<"ÌÒÊ÷="<<floor(money*0.5/600)<<"¿Ã" <<endl;
|
|
cout<<"Æ»¹ûÊ÷="<<floor(money*0.2/800)<<"¿Ã"<<endl;
|
|
}
|
|
return 0;
|
|
}
|