0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Well, does it work? If so why do you need to ask if it's right? If not, what does it do wrong?
0
carvin317's Avatar, Join Date: Feb 2009
Light Poster
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.
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Probably you need some code that works along these lines:
Code:
for(;;)
{
  get number
  if in range break
  else print error
}