Guest User

Untitled

a guest
Jul 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. # only writes to 5*5
  2. catch(:exit) do
  3. 1.upto(9) do |i|
  4. 1.upto(9) do |j|
  5. puts i*j
  6. throw :exit if i == 5 and j == 5
  7. end
  8. end
  9. end
Add Comment
Please, Sign In to add comment