Advertisement
Guest User

Untitled

a guest
Jan 9th, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. #!/usr/bin/ruby
  2. #x = 0
  3. 5.times do
  4.   x = 4
  5. end
  6. puts x
  7.  
  8. begin
  9.   x = 5
  10. end
  11. puts x
  12.  
  13.  
  14. if 5 == 5
  15.   x = 6
  16. end
  17.  
  18. puts x
  19.  
  20. while (x == 6) do
  21.   x = x + 1
  22. end
  23. puts x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement