2021年10月16日
摘要: 1.编写程序,使用scanf()函数接收整型、实型、字符型的变量,并分行依次输出。 #include<stdio.h> main() { int a; float b; char c; scanf("%d %f %c",&a,&b,&c); printf("%d\n%f\n%d\n",a,b,c); 阅读全文
posted @ 2021-10-16 17:47 wywcxk 阅读(44) 评论(0) 推荐(0)
  2021年10月14日
摘要: 1. 编写程序,定义两个整型变量,赋值并输出。 #include<stdio.h> main() { int a=2; int b=6; printf("%d%d\n",a,b); } 2.编写程序,定义一个单精度和一个双精度的变量,赋值并输出。 #include<stdio.h> main() { 阅读全文
posted @ 2021-10-14 21:56 wywcxk 阅读(46) 评论(0) 推荐(0)
  2021年9月30日
摘要: 1,输出我爱学习c语言 #include<stdio.h> int main() { printf(“我爱学习c语言”); } 2分行输出自己的专业和姓名 #include<stdio.h> int main() { printf(“计算机科学与技术\n”); printf(“王永伟\n”); } 阅读全文
posted @ 2021-09-30 17:29 wywcxk 阅读(13) 评论(0) 推荐(0)