04 2021 档案
摘要:#include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = %d,
阅读全文
摘要://task1 生成N个0~99之间的随机整数,并打印输出 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main(){ int x,n; srand(time(0)); //以当前系统时间作为随机种子 f
阅读全文
摘要://格式化输入、输出函数的简单应用 #include<stdio.h> int main(){ int num; scanf("%d",&num); printf("2049%04d\n",num); scanf("%d",&num); printf("2049%04d\n",num); scanf
阅读全文
浙公网安备 33010602011771号