摘要: #include<stdio.h> main(){ double price,sum,pay,zhaoling; int num,moling; printf("请输入商品单价"); scanf("%lf",&price); printf("请输入商品数量"); scanf("%d",&num); 阅读全文
posted @ 2021-10-16 17:36 边海(皿゚) 阅读(20) 评论(0) 推荐(0)
摘要: 1编辑程序,使用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",abc); } 2编 阅读全文
posted @ 2021-10-16 17:29 边海(皿゚) 阅读(15) 评论(0) 推荐(0)
摘要: 1.编写程序,输出“我爱c语言!” #include<studio.h> main() { printf("我爱c语言!"); } 2.分行输出自己的专业和姓名。 #include<stdio.h> main() { printf("计算机科学与技术\n"); printf("彭朝廷\n"); } 阅读全文
posted @ 2021-10-03 14:09 边海(皿゚) 阅读(49) 评论(0) 推荐(1)