Skip to content

Instantly share code, notes, and snippets.

@pollingj
Created July 20, 2011 16:47
Show Gist options
  • Save pollingj/1095334 to your computer and use it in GitHub Desktop.
Save pollingj/1095334 to your computer and use it in GitHub Desktop.
Odd for loop
for num in [1..starValue]
for (num = 1; 1 <= starValue ? num <= starValue : num >= starValue; 1 <= starValue ? num++ : num--)
@pollingj
Copy link
Author

@TrevorBurnham ah, sorry, I thought you meant the requirement to not have by 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment