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.
|
|
|
|
#include<iostream>
|
|
|
|
|
#include<cmath>
|
|
|
|
|
using namespace std;
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
int money;
|
|
|
|
|
cout<<"money=";
|
|
|
|
|
cin>>money;
|
|
|
|
|
if(money<100000) cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>=" <<money/500 <<"<EFBFBD><EFBFBD>" <<endl;
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>="<<floor(money*0.3/500)<<"<EFBFBD><EFBFBD>" <<endl;
|
|
|
|
|
cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>="<<floor(money*0.5/600)<<"<EFBFBD><EFBFBD>" <<endl;
|
|
|
|
|
cout<<"ƻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>="<<floor(money*0.2/800)<<"<EFBFBD><EFBFBD>"<<endl;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|