delete pics to save space
This commit is contained in:
18
history_source/ccf 入门篇/U3/3.2.2.cpp
Normal file
18
history_source/ccf 入门篇/U3/3.2.2.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int g;
|
||||
while(true)
|
||||
{
|
||||
cin>>g;
|
||||
if(!(g>30))
|
||||
{
|
||||
if(g<=10) cout<<"<EFBFBD><EFBFBD>Ҫ "<<0.8*g<<"Ԫ"<<endl;
|
||||
if(g>10&&g<=20) cout<<"<EFBFBD><EFBFBD>Ҫ "<<0.75*g<<"Ԫ"<<endl;
|
||||
if(g>20&&g<=30) cout<<"<EFBFBD><EFBFBD>Ҫ "<<0.7*g<<"Ԫ"<<endl;
|
||||
}
|
||||
else cout<<"<EFBFBD><EFBFBD><EFBFBD>ʼģ<EFBFBD>"<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user