From 639ee2ff7259d335053076a6b3285b67f777ab90 Mon Sep 17 00:00:00 2001 From: John Wisneski Date: Wed, 21 Oct 2020 22:27:24 +0000 Subject: [PATCH] Done. --- greeting.rb | 9 +++++++++ lib/example.rb | 13 ++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 greeting.rb diff --git a/greeting.rb b/greeting.rb new file mode 100644 index 0000000..c68faea --- /dev/null +++ b/greeting.rb @@ -0,0 +1,9 @@ +def greeting + puts "Hello World" +end + +greeting +greeting +greeting +greeting +greeting \ No newline at end of file diff --git a/lib/example.rb b/lib/example.rb index de7d2cb..d049c36 100644 --- a/lib/example.rb +++ b/lib/example.rb @@ -10,4 +10,15 @@ puts phrase puts phrase puts phrase -puts phrase \ No newline at end of file +puts phrase +phrase = "Hello World" +puts phrase +def say_hello_ten_times + phrase = "Hello World" + puts phrase + puts phrase +end +say_hello_ten_times + + + \ No newline at end of file