#include<stdio.h>
#include<math.h>
int main(){
double a,b,c,delta;
printf("Digitare i coefficienti\n",a,b,c);
scanf("%lf%lf%lf",&a,&b,&c);
delta=pow(b,2)-4*a*c;
if(delta>=0){
printf("Soluzioni reali e distinte\n");
printf("S1=%4lf\n",(-sqrt(delta)-b)/2*a);
printf("S2=%4lf\n",(sqrt(delta)-b)/2*a);
}
else if(delta<=0){
printf("Soluzioni complesse coniugate\n");
printf("S1=%4lf+i%4lf\n",-b/2*a,sqrt(fabs(delta))/2*a);
printf("S1=%4lf-i%4lf\n",-b/2*a,sqrt(fabs(delta))/2*a);
}
else{
printf("Soluzioni coincidenti\n");
printf("S1=S2=%lf",-b/2*a);
}
}
gxubuntu@xubuntu:~/Desktop$ gcc radici.c
gcc: error: radici.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.