摘要:
1.编写程序判断n是正数还是负数。 #include <stdio.h> main() { int n; printf("请输入一个数字"); scanf("%d",&n); if(n>0) printf("这个数字是正数"); else if(n==0) printf("这个数字是0"); els 阅读全文
posted @ 2021-10-30 22:01
aaa橘子酱
阅读(7)
评论(0)
推荐(0)
摘要:
1. 分数转成等级 switch #include<stdio.h> main() { int mark; printf("请输入学生的分数(0-100):\n"); scanf("%d",&mark); switch(mark/10) { case 10: case 9:printf("A\n") 阅读全文
posted @ 2021-10-30 21:47
aaa橘子酱
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号