Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 18th, 2018
66
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
#Swap value between two variables
a, b = 5, 10
a, b = b, a
#Output message 3 times
3.times { puts "Hello" }
#Output message if condition is true
str = ''
puts "str is empty" if str.empty?
Add Comment
Please,
Sign In
to add comment
Public Pastes
debug pip
Bash | 9 min ago | 16.40 KB
Untitled
PHP | 14 min ago | 1.51 KB
dumb program
C# | 20 min ago | 9.77 KB
craftify
Lua | 41 min ago | 3.54 KB
mobfarm-materials
GetText | 46 min ago | 0.54 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 53 min ago | 0.39 KB
Untitled
ASM (NASM) | 54 min ago | 1.23 KB
14
Python | 59 min ago | 0.22 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!