Advertisement
Guest User

Untitled

a guest
May 11th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.07 KB | None | 0 0
  1. x = 1
  2.  
  3. while x <= 10
  4.     x++
  5.     next unless (x % 2) == 0
  6.     puts x
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement