Skip to content

Instantly share code, notes, and snippets.

@AntonisFK
Created April 6, 2016 05:53
Show Gist options
  • Save AntonisFK/6d9b42ace37a31993bd2f9785299838d to your computer and use it in GitHub Desktop.
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
//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