Mentor
11Feb2009,22:31   #11
xpi0t0s's Avatar
Well, does it work? If so why do you need to ask if it's right? If not, what does it do wrong?
Light Poster
11Feb2009,23:10   #12
carvin317's Avatar
the code works, but i dont know where to put the error message please enter a number between 1-50.?

so if they entered 0 the message would say Error:Enter a number 1 -50 than ask for the input again.
Mentor
12Feb2009,04:41   #13
xpi0t0s's Avatar
Probably you need some code that works along these lines:
Code:
for(;;)
{
  get number
  if in range break
  else print error
}