Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@last=1;END{(@last<6) ? puts(6): ''}
@last.nil? ? puts((@last=2)-1): @last=2
(3-@last>1) ? puts((@last+=2)-1): @last=3
(4-@last>1) ? puts((@last+=2)-1): @last=4
(5-@last>1) ? puts((@last+=2)-1): @last=5
(6-@last>1) ? puts((@last+=2)-1): @last=6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.