LeonomoradBIZ

博客园 首页 新随笔 联系 订阅 管理

2020年12月18日 #

摘要: 任务一 #include<stdio.h> const int N=3; int main() { int a[N] = {1,2,3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n",&a[i] 阅读全文
posted @ 2020-12-18 13:03 LeonomoradBIZ 阅读(56) 评论(0) 推荐(0) 编辑

2020年12月1日 #

摘要: 任务一 该实验可以以返回值的形式返回根。 只需要将函数类型更替为double等有返回值类型,并返回即可。 任务二 #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n:"); scanf("%d" 阅读全文
posted @ 2020-12-01 19:00 LeonomoradBIZ 阅读(71) 评论(0) 推荐(0) 编辑

2020年11月20日 #

摘要: 任务一 #include<math.h> #include<stdio.h> int main() { float a,b,c,x1,x2; float delta,real,imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, &b, 阅读全文
posted @ 2020-11-20 09:39 LeonomoradBIZ 阅读(76) 评论(0) 推荐(0) 编辑

2020年11月5日 #

摘要: 实验任务一 #include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } 输出与书面运算 阅读全文
posted @ 2020-11-05 22:51 LeonomoradBIZ 阅读(41) 评论(0) 推荐(0) 编辑

2020年10月16日 #

摘要: 任务1 #include<stdio.h> int main() { printf("My stuno is 202083450002\n"); printf("2020:\nWe are achieving the great rejuvenation of the Chinese nation" 阅读全文
posted @ 2020-10-16 20:16 LeonomoradBIZ 阅读(56) 评论(0) 推荐(0) 编辑