请问这段程序哪里错了?#include "stdio.h" #include "math.h"void main(){ float a,b,c,x1,x2,disc;printf("input a b c:");scanf("%f%f%f",a,b,c);if(fabs(a)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 20:52:07
请问这段程序哪里错了?#include "stdio.h" #include "math.h"void main(){ float a,b,c,x1,x2,disc;printf("input a b c:");scanf("%f%f%f",a,b,c);if(fabs(a)
请问这段程序哪里错了?
#include "stdio.h"
#include "math.h"
void main()
{ float a,b,c,x1,x2,disc;
printf("input a b c:");
scanf("%f%f%f",a,b,c);
if(fabs(a)
请问这段程序哪里错了?#include "stdio.h" #include "math.h"void main(){ float a,b,c,x1,x2,disc;printf("input a b c:");scanf("%f%f%f",a,b,c);if(fabs(a)
scanf("%f%f%f",&a,&b,&c);
disc=b*b-4*a*c;