if语句和关系式表达

来源:互联网 发布:vue.js安装教程 编辑:程序博客网 时间:2024/04/28 01:30

大于>  大于等于>=  等于=  小于< 小于等于<=

#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 0
原创粉丝点击