10 2021 档案
第四次作业
摘要:1. #include<stdio.h> main(){ int a,b; printf("请输入分数:"); scanf("%d",&a); b=a/10; switch(b) { case 10: case 9:printf("A\n");break; case 8:printf("B\n"); 阅读全文
posted @ 2021-10-26 10:53 丝毫不慌 阅读(40) 评论(0) 推荐(0)
第三次作业
摘要:1.输入一个数,输出他是正数还是负数. #include<stdio.h> main(){ float a; scanf("%f",&a); if(a>0){ printf("是正数\n"); }else if(a==0){ printf("既不是正数也不是负数\n"); }else { print 阅读全文
posted @ 2021-10-23 17:01 丝毫不慌 阅读(62) 评论(0) 推荐(0)
第二次作业
摘要:1. #include <stdio.h> main(){ int a=1 ; int b=2; printf("%d %d\n",a,b); } 2. #include <stdio.h> main(){ float a=1.23; double b=2.56; printf("%f %lf\n" 阅读全文
posted @ 2021-10-15 21:36 丝毫不慌 阅读(65) 评论(0) 推荐(0)
第一次作业
摘要:编写程序,输出“我爱学习c语言!” #include<stdio.h> main(){ printf("我爱学习c语言!"); } 2.分行输出自己的专业和姓名。 #include<stdio.h> main(){ printf("计算机科学与技术\n"); printf("雷思豪\n"); } 3 阅读全文
posted @ 2021-10-03 18:06 丝毫不慌 阅读(29) 评论(0) 推荐(0)