View Code of Problem 42

#include <stdio.h>
int main(int argc, char *argv[]) {

	float a,b,c;
	scanf("%f %f %f",&a,&b,&c);
	printf("%0.2f ",(-b+sqrt(b*b-4*a*c))/2*a);
	printf("%0.2f",(-b-sqrt(b*b-4*a*c))/2*a);
}

Double click to view unformatted code.


Back to problem 42