Created
September 12, 2022 06:36
-
-
Save kzkn/a26a6e648db169b49c495720ce8f3226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p func10(1) | |
p func10 | |
p func10 | |
p func10 | |
@n = 0 | |
def answer10(reset = nil) | |
if reset.nil? | |
@n = @n + 1 | |
@n | |
else | |
@n = 0 | |
end | |
end | |
p answer10(1) | |
p answer10 | |
p answer10 | |
p answer10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment