有解
用C语言解一元二次方程
⽤C语⾔解⼀元⼆次⽅程/*⽂件名:解⼀元⼆次⽅程编写⽇期:2018.8.31使⽤软件:vs2017编写思路:双分⽀结构判断⽅程是否有实数根*/#include<stdio.h>#include<math.h>int main(){float a, b, c, x1, x2;printf("请输⼊⽅程的abc:");scanf_s("%f%f%f", &a, &...
⽤C语⾔解⼀元⼆次⽅程/*⽂件名:解⼀元⼆次⽅程编写⽇期:2018.8.31使⽤软件:vs2017编写思路:双分⽀结构判断⽅程是否有实数根*/#include<stdio.h>#include<math.h>int main(){float a, b, c, x1, x2;printf("请输⼊⽅程的abc:");scanf_s("%f%f%f", &a, &...