3-5
http://codeup.cn/problem.php?cid=100000566&pid=4
#include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main() {
double a=0, b=0, c=0,r1, r2 ;
while (a == 0 || (b*b - 4 * a*c) <= 0) {
scanf("%lf%lf%lf", &a, &b, &c);
}
r1 = (-b + sqrt(b*b - 4 * a*c)) / 2 * a;
r2 = (-b - sqrt(b*b - 4 * a*c)) / 2 * a;
printf("r1=%7.2f\nr2=%7.2f", r1, r2);
}
}