摘要: 编写程序,使用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,c); } 阅读全文
posted @ 2021-10-16 21:18 张云月 阅读(23) 评论(0) 推荐(0)
摘要: 编写程序,定义两个整形变量,赋值并输出 #include<stdio.h> main() { int a=1; int b=2; printf("%d\nW%d\n",a,b); } 编写程序,定义一个单精度和一个双精度的变量,赋值并输出 #include<stdio.h> main() { dou 阅读全文
posted @ 2021-10-12 21:26 张云月 阅读(27) 评论(0) 推荐(0)