c_code/未命名1.cpp

21 lines
323 B
C++
Raw Permalink Normal View History

2024-07-19 15:02:37 +08:00
#include<iostream>
using namespace std;
int main() {
int a;
double s;i
f(a<=10);{
s=0.8*a+0.2;
cout<<setprecision(2)<<fixed<<s<<endl;
}else if(a<=30){
s=0.8*a+0.2;
cout<<setprecision(2)<<fixed<<s<<endl;
}else if(a<=30){
s=0.8*a+0.2;
cout<<setprecision(2)<<fixed<<s<<endl;
}
cin>>a;
i
return 0;
}