摘要: include<stdio.h> int main() /{ int year; scanf("%d",&year); if(year%40 && year%100!=0) { printf("%d这个年份是闰年\n",year); } else if(year%4000) { printf("%d 阅读全文
posted @ 2024-01-10 10:31 累die 阅读(25) 评论(0) 推荐(0) 编辑
摘要: include <stdio.h> int jc (int num); int jc2 (int num); int main() { int n; n = jc(10); printf("%d\n", n); } int jc (int num) { int j = 1, i; for (i = 阅读全文
posted @ 2024-01-04 20:34 累die 阅读(136) 评论(0) 推荐(0) 编辑
摘要: include<stdio.h> int main() {int x,y; for(x=1;x<=9;x++) {for(y=9;y>=x;y--) printf("%d%d=%-3d",x,y,xy); printf("\n"); return 0; }} 阅读全文
posted @ 2024-01-03 22:57 累die 阅读(2) 评论(0) 推荐(0) 编辑
摘要: include<stdio.h> int main() { int a=1,b=1; while(a--); printf("%d\n",a); while(--b); printf("%d\n",b); } 阅读全文
posted @ 2023-12-30 15:28 累die 阅读(3) 评论(0) 推荐(0) 编辑
摘要: include<stdio.h> int main() { int a; char b; double c; printf("%d\n",sizeof a); printf("%d\n",sizeof b); printf("%d\n",sizeof c); printf("%d\n",sizeof 阅读全文
posted @ 2023-12-28 22:13 累die 阅读(9) 评论(0) 推荐(0) 编辑
摘要: include<stdio.h> int main() { int a,b,c,d; printf("请输入三个数字:"); 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) { 阅读全文
posted @ 2023-12-27 17:31 累die 阅读(8) 评论(0) 推荐(0) 编辑
摘要: include<stdio.h> int main() { printf("hello world!\n"); } 阅读全文
posted @ 2023-12-26 17:12 累die 阅读(4) 评论(3) 推荐(0) 编辑