Best collection of C programs
Tuesday, January 4, 2011
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment