摘要: #include <stdio.h> const int N = 4; int main() { int a[N] = {2, 0, 2, 1}; // 定义一个int型数组a,包含N个元素 char b[N] = {'2', '0', '1', '1'}; // 定义一个char型数组a,包含N个 阅读全文
posted @ 2021-12-06 20:45 哼·哈 阅读(25) 评论(1) 推荐(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", 阅读全文
posted @ 2021-11-30 22:52 哼·哈 阅读(23) 评论(1) 推荐(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); printf 阅读全文
posted @ 2021-11-16 23:40 哼·哈 阅读(98) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } #inclu 阅读全文
posted @ 2021-10-31 17:36 哼·哈 阅读(11) 评论(0) 推荐(0) 编辑