判断语句

来源:互联网 发布:fps游戏鼠标推荐 知乎 编辑:程序博客网 时间:2024/06/05 02:50


小明考试,80<=并且<=100,为A。

反之,则为B。


#include<bits/stdc++.h>
using namespace std;
int main()
{
 int x;
 cin>> x;
 if(x >=80 && x<=100)cout<<"A";
 else cout<<"B";
 return 0;
}

0 1