C语言考试练习题_一元二次方程 (Java代码) 摘要:import java.util.*; public class Main { public static void main(String[] args) { Scanner cin=n…… 题解列表 2017年12月30日 0 点赞 0 评论 2039 浏览 评分:9.9
一元二次方程的一种解法 摘要:#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
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月06日 0 点赞 0 评论 605 浏览 评分:9.9
是在努力进步的一天--一元二次方程 摘要:解题思路:蛮简单的,顺着解下去就好。注意事项:根据样例输出可知,需要保留两位数字,那么就需要设为double类型,头文件加上#include<iomanip>//要记住;结尾输出时cout<<fixe…… 题解列表 2022年01月23日 0 点赞 0 评论 761 浏览 评分: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
C语言考试练习题_一元二次方程(C语言) 摘要://解一元二次方程ax^2+bx+c=0的解。 #include<stdio.h> #include<math.h> int main(){ double a,b,c; s…… 题解列表 2023年06月05日 0 点赞 0 评论 652 浏览 评分:9.9
题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:想做这道题,需要先搞清楚一元二次方程,这里就不多说了直接套公式:x1 = -b+√b^2-4ac 2a …… 题解列表 2023年05月13日 0 点赞 0 评论 581 浏览 评分:9.9
还是比较简单的,昨天还以为我通关了想太多了 摘要:解题思路:注意事项:参考代码: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语言考试练习题_一元二次方程 ```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