var question ="Give me the number 0. You will get 6 nums. "; var num = prompt(question, ""); if (num > 100) { document.write("<center><h2>Number must be below 100</h2>"); } else { while (num <= 5) { document.writeln("<h2>num</H3>"); num++; } See ? You got 6 num`s becuase there were 0, 1, 2, 3, 4, 5, 6 numbers. |
The work in this series is copyright work of www.global-engineering.tk Contact : [email protected] You are the
number |