Monday, October 15, 2012

WAP TO FIND OUT QUARDRATIC EQUATION (D=B2-4AC)

/*****<soeasyprograms.blogspot.in>*****/
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