Created
April 6, 2016 05:53
-
-
Save AntonisFK/6d9b42ace37a31993bd2f9785299838d to your computer and use it in GitHub Desktop.
Write a program that would print all the odd numbers from 1 to 1000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Write a program that would print all the odd numbers from 1 to 1000 | |
for(var i=1; i<=1000; i=i+2){ | |
console.log(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment