chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
=begin
|
||||
# The famous Hello World
|
||||
# Program is trivial in
|
||||
# Ruby. Superfluous:
|
||||
#
|
||||
# * A "main" method
|
||||
# * Newline
|
||||
# * Semicolons
|
||||
#
|
||||
# Here is the Code:
|
||||
=end
|
||||
|
||||
puts "Hello World!"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Output "I love Ruby"
|
||||
say = "I love Ruby"; puts say
|
||||
|
||||
# Output "I *LOVE* RUBY"
|
||||
say['love'] = "*love*"; puts say.upcase
|
||||
|
||||
# Output "I *love* Ruby", 5 times
|
||||
5.times { puts say }
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
puts(2 ** 1)
|
||||
puts(2 ** 2)
|
||||
puts(2 ** 3)
|
||||
puts(2 ** 10)
|
||||
puts(2 ** 100)
|
||||
puts(2 ** 1000)
|
||||
Reference in New Issue
Block a user