C语言考试练习题_一元二次方程 (C++代码) 摘要:解题思路:1、判断deta的值;deta>0,x1=-b+sqrt(deta)/2*a;x2=-b-sqrt(deta)/2*a;deta=0,x1、x2=-b/2*a;此题不需考虑复数解得情况,若考…… 题解列表 2018年08月03日 0 点赞 0 评论 1319 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,x2,a,b,c,d; scanf("%lf…… 题解列表 2017年12月19日 0 点赞 0 评论 1142 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main{ public static void main(String[] a…… 题解列表 2024年11月23日 0 点赞 0 评论 370 浏览 评分:0.0
1112:一元二次方程求解问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ float a,b,c;&n…… 题解列表 2025年10月21日 0 点赞 0 评论 273 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C++代码) 摘要:解题思路: int d = b*b-4*a*c; 1. d等于0,则两个根相等并等于负的2a分之b, 2. d大于0,则两个根不等,带入公式(-b-sqr…… 题解列表 2017年11月27日 3 点赞 0 评论 1710 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c; float m,n; scan…… 题解列表 2017年10月07日 0 点赞 0 评论 1018 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c,d,x1,x2,t; scanf("%f%f…… 题解列表 2017年08月27日 0 点赞 0 评论 1268 浏览 评分:0.0
用“牛顿-拉夫森方法”受挫开平方根。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double extraction_of_square_root(double X);//开平方根int main(){&n…… 题解列表 2025年12月09日 0 点赞 0 评论 80 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; double x; scanf("%d%d%d",&a,&…… 题解列表 2019年05月25日 0 点赞 0 评论 1263 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c;…… 题解列表 2024年01月22日 0 点赞 0 评论 326 浏览 评分:0.0