#include<stdio.h>
main()
{
int x;
char buf[256];
start:
printf("enter a number from 1 to 5:");
fgets(buf,sizeof(buf),stdin);
x=atoi(buf);
if(x==1)goto one;
if(x==2)goto two;
if(x==3)goto three;
if(x==4)goto four;
if(x==5)goto five;
printf("invalid value\n");
goto start;
one:
printf("your entered one\n");
goto start;
two:
printf("your entered two\n");
goto start;
three:
printf("your entered three\n");
goto start;
four:
printf("your entered four\n");
goto start;
five:
printf("your entered five\n");
goto start;
/* you mad bro */
}
RedNight @};-