課程
/后端開發
/C
/C語言入門
這怎么改啊啊啊啊
2019-12-20
源自:C語言入門 4-3
正在回答
#include<stdio.h>
int main()
{
? ? int x;
? ? scanf("%d",&x);
? ? if(x>=90)
? ? {
? ? ? ? printf("%s\n","A");
? ? }
? ? else if(x>=80)
? ? ? ? printf("%s\n","B");
? ? else if(x>=70)
? ? ? ? printf("%s\n","C");
? ? else if(x>=60)
? ? ? ? printf("%s\n","D");
? ? else{printf("%s\n","E");}
}
慕運維3082854 提問者
? ? if(x>=0&&x<=100){
? ? else
? ? ? ? printf("%s\n","E");
?? ? else{printf("%s\n","wrong");}
? ?
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
1 回答想知道這個代碼為什么能運行成功
1 回答我想知道這個代碼的運算過程
4 回答怎么用c語言編程來知道一個程序運行的時間?我想知道這個程序的運行時間
3 回答想知道這個代碼錯在哪
1 回答想知道這個是哪里問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-12-21
#include<stdio.h>
int main()
{
? ? int x;
? ? scanf("%d",&x);
? ? if(x>=90)
? ? {
? ? ? ? printf("%s\n","A");
? ? }
? ? else if(x>=80)
? ? {
? ? ? ? printf("%s\n","B");
? ? }
? ? else if(x>=70)
? ? {
? ? ? ? printf("%s\n","C");
? ? }
? ? else if(x>=60)
? ? {
? ? ? ? printf("%s\n","D");
? ? }
? ? else{printf("%s\n","E");}
}
2019-12-21
#include<stdio.h>
int main()
{
? ? int x;
? ? scanf("%d",&x);
? ? if(x>=0&&x<=100){
? ? if(x>=90)
? ? {
? ? ? ? printf("%s\n","A");
? ? }
? ? else if(x>=80)
? ? {
? ? ? ? printf("%s\n","B");
? ? }
? ? else if(x>=70)
? ? {
? ? ? ? printf("%s\n","C");
? ? }
? ? else if(x>=60)
? ? {
? ? ? ? printf("%s\n","D");
? ? }
? ? else
? ? {
? ? ? ? printf("%s\n","E");
? ? }
? ? }
?? ? else{printf("%s\n","wrong");}
? ?
}