I want to return two float variables from a bool function althought i dont know how to do it. What should i write in main? Here is my code.
bool triwnymo(int a, int b, int c, float& x1, float& x2){
int d;
d=diak(a,b,c);
if(d>0){
x1=(-b+sqrt(d))/(2*a);
x2=(-b-sqrt(d))/(2*a);
return x1,x2;
return true;
}else if(d==0){
x1=-b/(2*a);
x2=x1;
return x1,x2;
return true;
}else{
return false;
}
}