Created
April 19, 2016 13:56
-
-
Save lrlucena/4b07f45dfd2ba224cf2e61c618e58ac8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$n = M1+M2 | |
def f(a) | |
n = $n + (a * 2) | |
$n = $n+1 | |
return n | |
end | |
def g(a) | |
$n = $n + a + 1 | |
x = $n*2 | |
return x | |
end | |
puts g($n) | |
puts f($n) | |
puts $n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment