is this code right its supposed to be a code that prompts the user for a number less than 100 and outputs only odd numbers less than or equal to the number entered by the user.for example if a user eneters the number 10 you should display 1,3,5,7,9 to the browser window?...im not sure if i have done it right..i gave it a go though!

inside the for loop your statements should be separated by semi-colons rather than commas. There should also be a + after the i in your document.write statement. You can also remove all the nbsp;s, I don't really think those are necessary.

university

07-30-2011, 04:44 AM

inside the for loop your statements should be separated by semi-colons rather than commas. There should also be a + after the i in your document.write statement. You can also remove all the nbsp;s, I don't really think those are necessary.