diff --git a/greeting.rb b/greeting.rb new file mode 100644 index 00000000..7eefbfb6 --- /dev/null +++ b/greeting.rb @@ -0,0 +1,9 @@ +def greeting +puts "Hello World" +end +greeting +greeting +greeting +greeting +greeting +greeting diff --git a/lib/example.rb b/lib/example.rb index de7d2cbf..f5373014 100644 --- a/lib/example.rb +++ b/lib/example.rb @@ -1,6 +1,7 @@ # Use this space to code along with the readme -phrase = "Hello World!" +def say_hello_world_ten_times + phrase = "Hello World!" puts phrase puts phrase puts phrase @@ -10,4 +11,6 @@ puts phrase puts phrase puts phrase -puts phrase \ No newline at end of file +puts phrase +end +say_hello_world_ten_times