Could you please help with this, a while loop that doesnt
step out of the loop, how do i do what i intended that is
if a number other than 1-3 is inputed continue with the loop
i am using djgpp on windows 98.
while ( (place_f < 0) || (place_f >3 ) ) /* place_f is */
{ /* initialised */
puts("Enter sqaure value 1-3\n" /* to 0. */
scanf("%d", &place_f );
}
return 0;
}
step out of the loop, how do i do what i intended that is
if a number other than 1-3 is inputed continue with the loop
i am using djgpp on windows 98.
while ( (place_f < 0) || (place_f >3 ) ) /* place_f is */
{ /* initialised */
puts("Enter sqaure value 1-3\n" /* to 0. */
scanf("%d", &place_f );
}
return 0;
}