10 2021 档案

摘要:#include<stdio.h> main(){ int mark; pringtf("请输入学生分数(0-100):\n"); scanf("%d",&mark); switch(mark/10) { case 10: case 9:printf("A\n"); case 8:printf("B 阅读全文
posted @ 2021-10-26 10:24 梅川丘库 阅读(37) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> main(){ int a; scanf("%d",&a); if(a>0) printf("正数\n"); else if(a==0) printf("既不是正数也不是负数\n"); else printf("负数\n"); } 2 #include<std 阅读全文
posted @ 2021-10-19 11:00 梅川丘库 阅读(39) 评论(0) 推荐(0)
摘要:#include<stdio.h> main(){ int a=3; int b=4; printf("%d %d\n",a,b); } #include<stdio.h> main(){ float a=7; double b=8; printf("%f %lf\n",a,b); } #inclu 阅读全文
posted @ 2021-10-12 10:28 梅川丘库 阅读(37) 评论(0) 推荐(0)