אשמח לעזרה
התוכנית מקבלת מספרים לa b c
ומחשבת x1
x2
מה הבעיה בתוכנית הזאת?
#include<stdio.h>
#include<math.h>
int main()
{
int a;
int b;
int c;
double sh ;
double x1 ;
double x2 ;
printf("please enter number abc");
scanf("%d,%d,%d",&a,&b,&c);
if(4*a*c>b*b);
printf("no solution");
else
{
sh=sqrt(b*b-4*a*c);
x1=((-b)+sh)/2*a;
x2=((-b)-sh)/2*a;
printf("%lf",x1);
printf("%lf",x2);
return 0;
}