#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main (void)
{
FILE *in;
int a,x2,x1,x0,i,D;
double ans1,ans2;
in=fopen("E:\\10032406\\FILE0328\\in.txt","r");
if(in!=NULL)
{
fscanf(in,"%d",&a);
for (i=1;i<=a;i++)
{
fscanf(in,"%d %d %d",&x2,&x1,&x0);
D=x1*x1-4*x2*x0;
if(D>=0)
{
ans1=((-1)*x1+sqrt(D))/(2*x2);
ans2=((-1)*x1-sqrt(D))/(2*x2);
printf("%.3lf,%.3lf\n",ans1,ans2);
}
else
printf("none\n");
}
fclose(in);
}
else
printf("File Opening Failure");
system("PAUSE");
return 0;
}
/*
none
none
-0.500,-1.000
-1.000,-1.000
-0.049,-12.351
請按任意鍵繼續 . . .
*/