C语言考试练习题_一元二次方程(怀氏C++) 摘要:#include<iostream> using namespace std; #include<cmath> #include<iomanip> int main() { int…… 题解列表 2022年10月25日 0 点赞 0 评论 500 浏览 评分:9.9
1112-一元二次方程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath> using namespace std;int main(){ int a,b,c; cin >>a …… 题解列表 2022年10月06日 0 点赞 0 评论 460 浏览 评分:0.0
入门算法,简单易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2,a,b,c,d,t; scanf("%lf…… 题解列表 2022年10月04日 0 点赞 0 评论 674 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程 ```cpp#include#include#includeusingnamespacestd;intmain(){doublex1,x2,a,b,c,d,t;cin>>a>>b>>c;d=b*b-4*a*c;if(d>0||d 题解列表 2022年09月10日 0 点赞 0 评论 678 浏览 评分:9.9
编写题解 1112: C语言考试练习题_一元二次方程 解题思路:注意事项:参考代码:a,b,c=map(int,input().split())deta=(b**2-4*a*c)**(1/2)x1=(-b+deta)/(2*a)x2=(-b-deta)/(2*a)print("%.2f%.2f"%(x1,x2)) 题解列表 2022年06月01日 0 点赞 0 评论 455 浏览 评分:0.0
还是比较简单的,昨天还以为我通关了想太多了 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())dta=b**2-4*a*cif dta>=0: x1=((-1)*b+dta**(1/2))/(2*a…… 题解列表 2022年05月27日 0 点赞 0 评论 529 浏览 评分:9.9
编写题解 1112: C语言考试练习题_一元二次方程(python) 摘要:运用一元二次求根公式即可,无需考虑无实数解的情况a,b,c = map(int, input().split()) x1 = (-b + pow(pow(b, 2) - 4 * a * c, 0.5…… 题解列表 2022年04月21日 0 点赞 0 评论 815 浏览 评分:9.9
编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf %lf %lf",…… 题解列表 2022年03月09日 0 点赞 0 评论 575 浏览 评分:0.0
C语言考试练习题_一元二次方程 摘要:```cpp #include using namespace std; int main() { double a,b,c,s,x1,x2; cin>>a>>b>>…… 题解列表 2022年03月05日 0 点赞 0 评论 373 浏览 评分:0.0
题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:1.需要引用<math.h>库2.输出的两个值都是小数,要用double参考代码:#include<stdio.h> #include<math.h> int main() …… 题解列表 2022年02月23日 0 点赞 0 评论 800 浏览 评分:0.0