当前位置:网站首页>1. Input a 100 point score from the keyboard and output its grade according to the following principles: score ≥ 90, Grade A; 80 ≤ score < 90, grade B; 70 ≤ score < 80, grade C; 60 ≤ score < 70, grade
1. Input a 100 point score from the keyboard and output its grade according to the following principles: score ≥ 90, Grade A; 80 ≤ score < 90, grade B; 70 ≤ score < 80, grade C; 60 ≤ score < 70, grade
2022-07-24 05:08:00 【Cc++edge- Qi】
#include <stdio.h>
void main(){
int data;
char grade;
printf("Please enter the score:");
scanf("%d”, &data);
switch(data/10)
{ case 10:
case 9 : grade=’A’; break;
case 8: grade=’B’; break;
case 7: grade=’C’; break;
case 6: grade=’D’; break;
default: grade=’E’;
}
printf("the grade is %c”,grade);
}
边栏推荐
- MS simulated written test
- 支撑复杂的模型群监控、实时告警等t4 文件系统。e
- Kingbase V8R6集群安装部署案例---脚本在线一键缩容
- What if the notepad file is too large to open? Introduction to the solution to the phenomenon that txt files are too large to be opened
- 排序——QuickSort
- Jetson设备 faild to download repository information使用小技巧记录
- How to set up an internal wiki for your enterprise?
- How to do if the right-click attribute of the network neighbor cannot be opened? The solution of the right-click attribute of the network neighbor cannot be opened
- Web3 product manager's Guide: how to face the encryption world
- Context encoders: feature learning by painting paper notes
猜你喜欢

frp内网穿透服务使用

MapReduce concept

Event extraction and documentation (2020-2021)

HCIA NAT experiment

Hcip day 3 - mGRE experiment

Web3 product manager's Guide: how to face the encryption world

Learning pyramid context encoder network for high quality image painting paper notes
![Rlib learning - [4] - algorithmconfig detailed introduction [pytoch version]](/img/1e/95078ad64a17686463547e8ba87cb1.png)
Rlib learning - [4] - algorithmconfig detailed introduction [pytoch version]

Yolov7 -- brief introduction of the paper

Chiitoitsu (expected DP)
随机推荐
Markov random field: definition, properties, maximum a posteriori probability problem, energy minimization problem
Uniapp learning
How to solve the engine prompt alias herodb and game engine startup exceptions?
浅谈不可转让的声誉积分NFT SBTs面临的困境
Foreign key operation of MySQL_ Cascade operation
The software cannot be uninstalled. Please wait for the current program to complete the uninstallation or change the solution
uniapp学习
支撑复杂的模型群监控、实时告警等t4 文件系统。e
Xiaomi finance was officially launched today (May 11) with a free 10000 yuan experience fee attached to the official address
There is not enough space on the disk to complete this operation when partitioning the computer
Rlib learning - [4] - algorithmconfig detailed introduction [pytoch version]
JMeter record the BeanShell written into excel instance caused by an automatic data generation
C primer plus learning notes - 5. Pointer
Use of fiddler packet capturing tool
几种常见的排序
)的低字节来反馈给应用层或者成多种格式文档:
How is it that desktop icons can't be dragged? Introduction to the solution to the phenomenon that desktop file icons can't be dragged
PHP修改配置文件的两种方法
Event extraction and documentation (2019)
Want to know how a C program is compiled—— Show you the compilation of the program