Tuesday, 16 October 2012
Program Of GoTo Statement In C
#include<stdio.h>
#include<conio.h>
main()
{
int i;
clrscr();
printf("Enter i=");
scanf("%d",&i);
up:printf("\n Hello");
down:printf("\n Bye");
if(i<5)
{
goto up;
}
else
{
goto down;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment