摘要: 一、 编写程序,定义两个整型变量,赋值并输出 #include<stdio.h> main() { int a=8; int b=6; printf("%d%d\n",a,b); } 二、 编写程序,定义一个单精度和一个双精度的变量,赋值并输出 #include<stdio.h> main() { 阅读全文
posted @ 2021-10-22 20:11 刘凯铭 阅读(37) 评论(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-14 16:20 刘凯铭 阅读(22) 评论(0) 推荐(0)
摘要: 1.编写程序,输出“我爱学习c语言!” #include<stdio.h> main() { printf("我爱学习c语言"); } 2.分行输出自己的专业和姓名 #include<stdio.h> main() { printf("计算机科学与技术\n"); printf("刘凯铭\n"); } 阅读全文
posted @ 2021-10-07 16:28 刘凯铭 阅读(31) 评论(0) 推荐(0)