一次考试,所有得分大于80分的,得“A”;小于80分的,得“B”。
#include<iostream>
#include<string>#include<math.h>
#include<string.h>
using namespace std;
int main()
{
int x;
cin>>x;
if(x>=80 &&x<=100) cout<<"A";
else cout<<"B";
return 0;
}
一次考试,所有得分大于80分的,得“A”;小于80分的,得“B”。
#include<iostream>
#include<string>