摘要: #include <stdio.h> const int N=4; int main() { int a[N]={2,0,2,1}; char b[N]={'2','0','1','1'}; int i; printf("sizeof(int) = %d\n", sizeof(int)); prin 阅读全文
posted @ 2021-12-01 21:07 lzy1 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf("%d", &n); for (i = 1; i <= n; ++i) printf("%d! = %lld\n", i, 阅读全文
posted @ 2021-11-25 19:44 lzy1 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int num; scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num) 阅读全文
posted @ 2021-11-13 13:03 lzy1 阅读(13) 评论(1) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { printf(" O "); printf(" O \n"); printf("<H> "); printf("<H>\n"); printf("I I "); printf("I I\n"); return 0; } #include< 阅读全文
posted @ 2021-10-30 12:29 lzy1 阅读(7) 评论(0) 推荐(0) 编辑