var question ="Give me a number 5 or below! ";
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++;
}

What you see is that it asks for a number 5 or below. If you press for example 5 then you get a single num. If you press 2 then you will get 2, 3, 4, 5 = 4 num`s. It calculates the number of numbers up to 5 from the number you gave. Try it again to see it for yourselves. . .


HOME

The work in this series is copyright work of www.global-engineering.tk

Contact : [email protected]

You are the number person to access this page.

Hosted by www.Geocities.ws

1