11 2020 档案

摘要:任务一 不能用函数返回值方式返回给主函数,方程有两根而返回值只能有一个 任务二 // 利用局部static变量计算阶乘 #include <stdio.h> long long fac(int n); // 函数声明 int main() { int i,n; printf("Enter n: ") 阅读全文
posted @ 2020-11-29 16:00 ignored 阅读(148) 评论(0) 推荐(0)
摘要:任务一 #include <stdio.h> #include <math.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,&c) 阅读全文
posted @ 2020-11-16 17:50 ignored 阅读(68) 评论(0) 推荐(0)