Write a program in C to find if number is equal to 10 then print Good else Bad
#include <stdio.h>
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 ();
}
Post a Comment