That'll only work once - you need the while loop

I don't know javascript (I'm a C++er), so can't help with the syntax. But, basically Derek, your first effort doesn't look too far off - it's just that your while condition is wrong - it'll only enter the loop when the entered number is equal tou your upper limit. Also you're not re-parsing the number you enter in the loop. And what happens if the entered number is less than 1?

Posted By: BerlinCanary, May 27, 15:48:56

Reply to Message

Log in


Written & Designed By Ben Graves 1999-2025