04 2021 档案

摘要:1.实验1: #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 23:08 lbwniubi 阅读(191) 评论(1) 推荐(0)
摘要:1.实验任务1: 思考: #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()%31+1; pri 阅读全文
posted @ 2021-04-15 22:43 lbwniubi 阅读(166) 评论(0) 推荐(0)