diff --git a/class/calc.cpp b/class/calc.cpp new file mode 100644 index 0000000..65fde69 --- /dev/null +++ b/class/calc.cpp @@ -0,0 +1,33 @@ +#include +#include + +using namespace std; + +/* +int main(){ + int range = 0; + while (range != 5) + { + int a,s; + cin >>a; + + s = a * a; + + cout <<"结果:"< 0) + { + cout <<"你还剩"<> tree; while (wn < tree) { @@ -16,11 +18,11 @@ int main(){ break; } - wn -= down; + wn--; time++; } - cout < -#include -#include - -using namespace std; - -int main(){ - float CIN,money; - - cin >>CIN; - - if (CIN <= 10) - { - money = CIN * 0.80 + 0.20; - cout < 10 and CIN <= 20) - { - money = CIN * 0.75 + 0.20; - cout < 20 and CIN <=30) - { - money = CIN * 0.7 + 0.20; - cout < +#include +#include + +using namespace std; + +int main(){ + float CIN,money; + + cin >>CIN; + + if (CIN <= 10) + { + money = CIN * 0.80 + 0.20; + cout < 10 and CIN <= 20) + { + money = CIN * 0.75 + 0.20; + cout < 20 and CIN <=30) + { + money = CIN * 0.7 + 0.20; + cout <