C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:b2-4ac的三种不同形式,尤其是小于0时,要采用复数的表达形式以及开方时取正。参考代码:#include<stdio.h>#include<math.h>int main(){d…… 题解列表 2018年01月04日 1 点赞 0 评论 1468 浏览 评分: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 评论 1534 浏览 评分: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 评论 2389 浏览 评分: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 评论 1305 浏览 评分: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 评论 1603 浏览 评分:0.0
C语言考试练习题_一元二次方程-题解(C语言代码)完全不用数组和定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){double a,b,c,i,j,h,sq;scanf("%lf %lf %lf"…… 题解列表 2020年11月20日 0 点赞 0 评论 950 浏览 评分:0.0
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 « 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