题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:想做这道题,需要先搞清楚一元二次方程,这里就不多说了直接套公式:x1 = -b+√b^2-4ac 2a …… 题解列表 2023年05月13日 0 点赞 0 评论 581 浏览 评分:9.9
一元二次方程 摘要:解题思路:还是定义函数好用,这不用管负值,用if分类传-b*b+4ac即可解决gen小于0注意事项:参考代码:#include<iostream> #include<cmath>//用sqrt开方 …… 题解列表 2023年04月03日 0 点赞 0 评论 368 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 ```cpp#include#includeusingnamespacestd;//解一元二次方程ax^2+bx+c=0的解//输出两个解,按照大小顺序输出,一个解时需要打印两次,//不用考虑无解问题,保留两位小数intmain(){doublea, 题解列表 2023年02月27日 0 点赞 1 评论 560 浏览 评分:6.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> int main() { double a, b, c; double x1, …… 题解列表 2022年12月31日 0 点赞 0 评论 490 浏览 评分:0.0
C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2,d,t; scanf(…… 题解列表 2022年12月24日 0 点赞 0 评论 842 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路: 注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c…… 题解列表 2022年12月21日 0 点赞 0 评论 569 浏览 评分:9.9
一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float x1,x2; scanf("…… 题解列表 2022年12月20日 0 点赞 0 评论 436 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程(哈哈哈,笨比写法) 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())q=b*b-4*a*cm=(-b+pow(q,0.5))/2n=(-b-pow(q,0.5))/2if q>0…… 题解列表 2022年12月17日 0 点赞 0 评论 550 浏览 评分:0.0
常规思路——一元二次方程求解——C语言 摘要:解题思路:知道数学解一元二次方程的公式即可;引用sqrt函数进行开方。注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ double…… 题解列表 2022年12月12日 0 点赞 0 评论 452 浏览 评分:0.0
C语言考试练习题_一元二次方程(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,c,x1,x2,t; scanf("%lf %lf %lf",&a,&b,&c…… 题解列表 2022年11月04日 0 点赞 0 评论 549 浏览 评分:9.9