Tuesday, January 4, 2011

QUARDRATIC EQUATION

WAP TO FIND OUT QUARDRATIC EQUATION (D=B2-4AC)
void main ()
{
int a,b,c,d;
clrscr ();
printf ("Enter A: ");
scanf ("%d",&a);
printf ("Enter B: ");
scanf ("%d",&b);
printf ("Enter C: ");
scanf ("%d",&c);
d= (b*b)-(4*a*c);
printf ("\nAnswer is %d",d);
getch ();
}

No comments:

Post a Comment