摘要: 1.编写程序,定义两个整型变量,赋值并输出。 #include<stdio.h>main(){ int a=2; int b=6; printf("%d%d\n",a,b);} 2.编写程序,定义一个单精度和一个双精度的变量,赋值并输出。 #include<stdio.h>main(){ float 阅读全文
posted @ 2021-10-15 14:19 林木森森121 阅读(17) 评论(0) 推荐(0)
摘要: 1.编写程序,输出“我爱C语言” #include<stdio.h>main(){ printf("我爱C语言!");} 2.分行输出自己的专业和姓名 #include<stdio.h>main(){ printf("* ** ** ** ** ** ** ** ** ** ** ** ** ** 阅读全文
posted @ 2021-10-06 06:53 林木森森121 阅读(22) 评论(0) 推荐(0)