Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # using loop method with do
- m = 0
- loop do
- m +=1
- print "Ruby!"
- break if m == 30
- end
- # shortcut using .times
- 30.times {print "Ruby!"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement