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, f = %lld\n", 阅读全文
posted @ 2021-04-29 21:27 朱家志 阅读(70) 评论(2) 推荐(0)
摘要:#include<stdio.h> #include<stdlib.h> #include <time.h> #define N 5 int main(){ int x, n; srand(time(0)); for(n=1;n<=N;n++){ x = rand() % 100; printf(" 阅读全文
posted @ 2021-04-11 10:52 朱家志 阅读(69) 评论(2) 推荐(0)