Tuesday, August 28, 2007

GOOD ELSE BAD

WAP to find if number=10 then Good else Bad

void main ()

{

int a;

clrscr ();

printf ("Enter any Number: ");

scanf ("%d",&a);

if (a==10)

goto g;

else

goto b;

g:

printf ("Good");

goto end;

b:

printf ("Bad");

goto end;

end:

getch ();

}


No comments:

Post a Comment