The Number War! Count to 100 or -100

Status
Not open for further replies.
<html>
<body>
<script>
var number=59;
while(number<=60)
{
number++; // increase by 1
}
while number==60
{
document.write(number +," (+)"); // Displays the number and (+)
}
</script>
</body>
</html>
(btw if you copy this into your notepad and save as an html file it should work as a website, and yes I just posted the number in javascript. Edit: It will be an empty website.)
 
Overly complex, tl;dr,
>>> def add1():

number = 60
while number < 61:

number += 1
if number == 61:
print(number + " (+)")
>>> add1()
61 (+)
 
Status
Not open for further replies.
Back
Top Bottom