布布bu

导航

11 2020 档案

实验三。
摘要://一元二次方程求解 //重复执行,直到按ctrl+z结束 // #include<math.h> #include<stdio.h> int main(){ float a,b,c,x1,x2; float delta, real, imag; printf("Enter a, b, c: "); 阅读全文

posted @ 2020-11-18 18:46 布布bu 阅读(111) 评论(1) 推荐(0)

实验2
摘要:// ex1.cpp #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-01 18:54 布布bu 阅读(77) 评论(2) 推荐(0)