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