Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 1;
- y = 2;
- {
- y = 3;
- p x;
- p y;
- }
- p x;
- p y;
- Output:
- 1
- 3
- 1
- 2
- ===================================
- x = 1;
- y = 2;
- { |x|
- y = 3;
- p x;
- p y;
- }
- p x;
- p y;
- Output:
- 1
- 3
- 1
- 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement