Program to find Square Root of (bb+4ac)

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a, b, c, d;
clrscr();
printf("\nEnter Value of a");
scanf("%f", &a);
printf("\nEnter Value of b");
scanf("%f", &b);
printf("\nEnter Value of c");
scanf("%f", &c);
d=sqrt((b*b)+(4*a*c));
printf("Result is %f",d);
getch();
}

Leave a Reply