#include <stdio.h>
int main()
{
int num;
printf("자연수 입력: ");
scanf("%d", &num);
if(num==1)
goto ONE;
else if(num==2)
goto TWO;
else
goto OTHER;
ONE:
printf("1을 입력하셨습니다! \n");
goto END;
TWO:
printf("2를 입력하셨습니다! \n");
goto END;
OTHER:
printf("3 혹은 다른 값을 입력하셨군요! \n");
goto END;
END:
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: