Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 18th, 2018
80
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
@a = 1
def a_ditambah(b)
@a + b
end
def tambah_a
@a = @a + 1
end
@b = a_ditambah(2) # @b = 3
@c = a_ditambah(2) # @c = 3
tambah_a # @a = 2
@d = a_ditambah(2) # @d = 4
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 2 min ago | 0.39 KB
Backrooms Code Requester
Lua | 6 min ago | 0.13 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 8 min ago | 0.38 KB
Backrooms Code Server
Lua | 9 min ago | 0.97 KB
Degree_row_module
Fortran | 13 min ago | 1.21 KB
main
Fortran | 14 min ago | 0.75 KB
ejer2bis_tp6
C++ | 31 min ago | 0.96 KB
ejer1bis_tp6
C++ | 32 min ago | 0.94 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!