```
void setup() {
}
float discriminant(float a, float b,float c ){
float x1,x2;
float d=(b*b)-4*a*c;
if (d>0){
x1=((-b)-sqrt(d))/2*a;
x2=((-b)+sqrt(d))/2*a;
return(x1) ;
}
if (d<0){
x1=-b/2*a;
return(x1);
}
else{
println("pas de solution");
}
}
```

i’m trying to make a program that calculates the solution of an equation of the second order , in the first case i want to return both x1 and x2 but apparently i cant .

And also if there is no solution i want the function to say with a string that there is no solutions this is killing me help pls