10 2021 档案
第三次作业
摘要:1.编写程序,判断一个数n是正数还是负数. Include<stdio.h> main() { float n; scanf(“%f”,&n); if(n>0) {printf(“正数\n”);} else if (n==0) {printf(“0既不是正数,也不是负数!\n”);} else pr 阅读全文
posted @ 2021-10-20 21:19 王有胜 阅读(42) 评论(0) 推荐(0)
第二次作业
摘要:1.编写程序,定义两个整形变量,赋值并输出 #include<stdio.h> main() { int a=5; int b=7; printf("%d %d\n",a,b); } 2.编写程序,定义一个单精度和一个双精度的变量,赋值并输出。 #include<stdio.h> main() { 阅读全文
posted @ 2021-10-15 14:34 王有胜 阅读(51) 评论(0) 推荐(0)
第一次作业
摘要:#include<stdio.h> main() { printf("我爱学习c语言"); } 2. #include<stdio.h> main() { printf("计算机\n闫自建\n"); } 3 nclude<stdio.h> main() { printf(" ******\n *\n 阅读全文
posted @ 2021-10-06 14:16 王有胜 阅读(39) 评论(0) 推荐(0)