- 博客(9)
- 收藏
- 关注
原创 求10个数中最大值
#include<stdio.h> main{ int a,i,max printf(“请输入10个整数”); scanf(“%d”,&a); max=a for(i=1;i<=9;i++) {scanf(“%d”,&a); if(a>max) } printf(“%d是最大值”,max);
2022-09-23 22:28:32
67
1
原创 闰年的表示-for循环
#include<stdio.h> main() { int year year=2000; { for(year%4==0)&&(year%100!=0)||(year%4==0) printf(“%d年是闰年”,year); else pruntf(“ %d是平年”,year); printf(“\n”,year);
2022-09-22 22:12:26
540
原创 简单猜数字游戏
#include<stdio.h> main() {int a,b; for(b=1;b<=10;b++; scanf(“%d”&a); if(a<5) printf(“错了”); if(a>5) printf(); if(a==5) {printf(“你赢了”); break;} {if(b==5) printf(“输了”)}}
2022-09-17 22:45:54
614
1
原创 呵,水莲花
#include<stdio.h> main() {int a,b,c,d; for(a=100;a<=999;a++) { b=a/100; c=a/10%10; d=%10 if(b*b*b+c*c*c+d*d*d==a) printf(“对了 %d %d %d %d\n”,a,b,c,d); } }
2022-09-16 22:09:34
88
原创 for循环
#include <stdio.h> int main(){ int a,b=9,c; for(a=1;a<=9;a++) {c=a*b; } printef(“%d*%d=%d\n”,a,b,c); }
2022-09-14 22:19:31
43
原创 计算机简单计算
#include<stido.h> main () { int a,b,c,sum ; a =1; b=3; c=4; sum=a+b -c; printf(“%d”,c) } # , ; 打死也不能忘
2022-09-12 22:57:59
42
原创 第一篇博客
从九月六日开始正式开始学习计算机,从一开始的组装与维护到c语言,在这俩周这种学到很多东西,ps,网页设计,,以及基础的c语言等等。特别是c语言代码中的运算,hollow ward等等。总之在这两周中学到了很多东西,收获了很多。也知道自己的未来也有很多艰难困苦,好好面对,好好学习,期待两年后的高考。
2022-09-10 14:17:26
137
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人