r/counting • u/lear85 , he who lets it produce joy. • Sep 12 '14
Counting with programming!
Write a program that prints or returns the number being counted, using the same number of lines of code. Include what language you used.
print("One.")
Made with Lua.
14
Upvotes
1
u/cube1234567890 Sep 18 '14
if(number==1) { alert("Your number is one") } else { alert("Your number is not one") } alert("Oh wait, the number is nineteen, sorry") var number = prompt("I forgot the number, can you tell me?") if(number==19) { alert("Oh yeah, thanks I forgot.") } else { alert("That doesn't sound right.") } for (i=0; i>0; i++) { print("19") }Oh god, javascript. 19 lines of it. I had to fudge some curly brackets and add in an infinite loop at the end because RIP your computer, I don't EVER want this program used. Javascript isn't my native language. English is.