Thread: scanf
View Single Post
Skilled contributor
15Aug2008,22:44  
faizulhaque's Avatar
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.