c语言程序提问

2025-01-07 04:04:27
推荐回答(1个)
回答1:

#include

int main()
{
int a;
cout<<"输入成绩";
cin>>a;
a = a/10;
if (a > 10 || a < 0)
{
cout<<"this score is error"< }
else if (a >= 8)
{
cout << "A" < }
else if (a >= 6)
{
cout <<"B"< }
else
{
cout<<"C"< }
return 0;
}