10 2021 档案

摘要:1编写程序,使用if的多分支选择结构,将输入分数mark(0-100整数)转换为相应的等级)(900~100为A,80~89为B,70~79为C,60~69为D,0~59为NO PASS) #include<stdio.h> main() { int mark; printf("输入学生的分数(0- 阅读全文
posted @ 2021-10-29 14:02 MENGYINGCAI 阅读(42) 评论(0) 推荐(0)
摘要:恢复内容开始 编写程序,使用scanf()函数接受整型实型字符型行的变量,并分行依次输出。 #include<stdio.h> main() { int a; float b; char c; scanf("%d,%f,%c",&a,&b,&c); printf("%d\n%f\n%c\n",a,b 阅读全文
posted @ 2021-10-29 13:22 MENGYINGCAI 阅读(22) 评论(0) 推荐(0)
摘要:三,编写程序 1,编写程序,定义两个整型变量,并赋值输出。 #include<stdio.h> main(){ int a=2; int b=6; printf("%d%d\n",a,b); } 2编写程序精度和双精度的变量,赋值,定义一个单并输出。 #include<stdio.h> main() 阅读全文
posted @ 2021-10-17 22:35 MENGYINGCAI 阅读(29) 评论(0) 推荐(0)
摘要:四,编写程序 1, 编写程序,输出“我爱学习c语言!”。 2, 分行输出自己的专业和姓名, 3, 用*号输出字母C图案 #include<stdio.h> main(){ printf(“我爱学习C语言!“); printf(“***************”); printf(“计算机科学于技术\ 阅读全文
posted @ 2021-10-06 17:22 MENGYINGCAI 阅读(23) 评论(0) 推荐(0)