Hifipsysta-1112-C语言考试练习题_一元二次方程(C++代码)求根公式法 ```cpp#include#includeusingnamespacestd;intmain(){doublea,b,c,result;cin>>a>>b>>c;doubledelta=pow(b,2)-4*a*c;doublesqrt_delta;if(delta>0){sqrt_delta=sq 题解列表 2022年02月04日 0 点赞 0 评论 568 浏览 评分:0.0
是在努力进步的一天--一元二次方程 摘要:解题思路:蛮简单的,顺着解下去就好。注意事项:根据样例输出可知,需要保留两位数字,那么就需要设为double类型,头文件加上#include<iomanip>//要记住;结尾输出时cout<<fixe…… 题解列表 2022年01月23日 0 点赞 0 评论 761 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin >> a >> b…… 题解列表 2021年12月17日 0 点赞 0 评论 626 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程 解题思路:注意事项:参考代码:importmatha,b,c=map(float,input().split())x=-math.sqrt(-c+(b/2*a)**2)-b/2*ay=math.sqrt(-c+(b/2*a)**2)-b/2*aifx 题解列表 2021年12月10日 0 点赞 0 评论 621 浏览 评分:0.0 1112很狠狠太狠了 摘要:解题思路:注意事项:注意输出两个值如果x1等x2参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c,d,x1,x2,p,q;…… 题解列表 2021年11月09日 0 点赞 0 评论 811 浏览 评分:0.0 1112我是服了,如果没有记得方程的简便解法,怎么写? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2,a,b,c,d,t; scanf("%lf…… 题解列表 2021年11月07日 0 点赞 0 评论 559 浏览 评分:0.0 1112: C语言考试练习题_一元二次方程-题解(python) 解题思路:注意事项:参考代码:a,b,c=map(int,input().split())m=b**2-4*a*cm=m**(0.5)x=(-b+m)/2y=(-b-m)/2print('{:.2f}{:.2f}'.format(x,y)) 题解列表 2021年10月19日 0 点赞 1 评论 603 浏览 评分:0.0 C语言考试练习题_一元二次方程 摘要:解题思路:判断b的平方减4ac是否大于零,大于零有两个解,等于零有一个,小于零没有。注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2021年09月13日 0 点赞 0 评论 612 浏览 评分:0.0 一元二次方程的一种解法 摘要:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float x,z,x1,x2,t; scanf("%d %d %d",&a…… 题解列表 2021年09月01日 0 点赞 0 评论 900 浏览 评分:9.9 C语言考试练习题_一元二次方程 摘要:参考代码:#include<iostream> #include<cmath> #include<iomanip> using namespace std; double a,b,c,x1…… 题解列表 2021年03月12日 0 点赞 0 评论 532 浏览 评分:0.0 « 12345678910 »
1112很狠狠太狠了 摘要:解题思路:注意事项:注意输出两个值如果x1等x2参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c,d,x1,x2,p,q;…… 题解列表 2021年11月09日 0 点赞 0 评论 811 浏览 评分:0.0
1112我是服了,如果没有记得方程的简便解法,怎么写? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2,a,b,c,d,t; scanf("%lf…… 题解列表 2021年11月07日 0 点赞 0 评论 559 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程-题解(python) 解题思路:注意事项:参考代码:a,b,c=map(int,input().split())m=b**2-4*a*cm=m**(0.5)x=(-b+m)/2y=(-b-m)/2print('{:.2f}{:.2f}'.format(x,y)) 题解列表 2021年10月19日 0 点赞 1 评论 603 浏览 评分:0.0
C语言考试练习题_一元二次方程 摘要:解题思路:判断b的平方减4ac是否大于零,大于零有两个解,等于零有一个,小于零没有。注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2021年09月13日 0 点赞 0 评论 612 浏览 评分:0.0
一元二次方程的一种解法 摘要:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float x,z,x1,x2,t; scanf("%d %d %d",&a…… 题解列表 2021年09月01日 0 点赞 0 评论 900 浏览 评分:9.9
C语言考试练习题_一元二次方程 摘要:参考代码:#include<iostream> #include<cmath> #include<iomanip> using namespace std; double a,b,c,x1…… 题解列表 2021年03月12日 0 点赞 0 评论 532 浏览 评分:0.0