摘要: 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-17 09:51 淘气5555 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 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-17 09:44 淘气5555 阅读(40) 评论(0) 推荐(0) 编辑