#include<stdio.h>
void main()
{
int number;
printf("please input the number(between 1 and 8):\n");
loop:
{
scanf("%d",&number);
if(number>8||number<1)
{
printf("Error!Please input another number:\n");
goto loop;
}
}
printf("The number is %d.\n",number);
}