use this
int a=1;
while (a==1)
{
printf("Enter Any Number Accept 1");
scanf("%d",&a);
}

above one is giving u infinit loog but when the user give input 1 than it's terninate.