Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def test(a)
  2. a+=2
  3. puts a
  4.  
  5. if a > 2
  6. puts "a > 2"
  7. end
  8. end
  9.  
  10. test(1) #correct expected response: 2 / a > 2
  11. test(0) #correct expected response: 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement