2021年10月16日

第三次作业

摘要: 1.编写程序,使用scanf()接收整型·实型·字符型的变量,并分行依次输出。 #include <stdio.h> main() { int a=1; float b=2; char c='5'; printf("%d\n%f\n%c\n",a,b,c); } 2.编写程序,通过scanf()函数 阅读全文

posted @ 2021-10-16 23:24 Lucky筱筱 阅读(34) 评论(0) 推荐(0)

2021年10月14日

第二次作业

摘要: 1.编写程序,定义两个整形变量,赋值并输出。 #include <stdio.h> main() { int a=6; int b=8; printf("%d%d\n",a,b); } 2.编写程序,定义一个单精度和一个双精度的变量,赋值并输出。 #include <stdio.h> main() 阅读全文

posted @ 2021-10-14 16:34 Lucky筱筱 阅读(41) 评论(0) 推荐(0)

2021年10月3日

第一次作业

摘要: 1.编写程序,输出“我爱学习C语言!” #include<stdio.h> main() { printf("我爱学习C语言"); } 2.分行输出自己的专业和姓名。 #include<stdio.h> main() { printf("计算机科学与技术\n"); printf("王子豪\n"); 阅读全文

posted @ 2021-10-03 15:10 Lucky筱筱 阅读(22) 评论(0) 推荐(0)

导航