c++ 选择结构

来源:互联网 发布:偶像活动美月卡片淘宝 编辑:程序博客网 时间:2024/05/17 04:22

程序如下:

#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;
}
1 0