- 博客(6)
- 收藏
- 关注
原创 一个简单的求和...
#include<stdio.h>int main(){ int x,y,z; scanf("%d%d",&x,&y); z=x+y; printf("和为%d",z); return 0; }
2022-01-23 16:09:34
251
原创 10的阶乘的和...
#include<stdio.h>int main(){ int x=1,y=0; int z=1; while(z<=10) { x*=z; y+=x; z++; } printf("值为%d",y); return 0;}...
2022-01-23 16:04:19
458
原创 3个数由小到大排序
#include<stdio.h>int main(){ int a,b,c,d; scanf("%d%d%d",&a,&b,&c); if(a>b) { d=a; a=b; b=d; } if(a>c) { d=a; a=c; c=d; } if(b>c) { ...
2022-01-22 15:21:40
253
原创 冒泡法 ..
#include<stdio.h>int main(){ int i,n; int x,y; int a[10]; for(i=0;i<10;i++) { scanf("%d",&a[i]); } for(x=0;x<10;x++) { for(y=0;y<10-x;y++) { if(a[y]>a[y+1]) ...
2022-01-16 12:24:05
135
原创 正方形..
#include<stdio.h>int main(){ printf("*****\n"); printf("* *\n"); printf("*****\n"); return 0;}
2022-01-15 13:37:49
173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人