From a482ff3c8526ab0f446d4e87aec62c423204bcc4 Mon Sep 17 00:00:00 2001 From: brave-ping-4201 Date: Fri, 28 Feb 2020 08:08:29 +0000 Subject: [PATCH] Done. --- lib/introduction.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/introduction.rb b/lib/introduction.rb index 2b78f01..4b322ea 100644 --- a/lib/introduction.rb +++ b/lib/introduction.rb @@ -4,6 +4,25 @@ # in order to complete the rest of this course and be ready for the next course! +def introduction(name) + puts "Hi, My name is #{name}." +end +introduction ("Henok") + + +def introduction_with_language(name, language) + puts "Hi, my name is #{name} and I am learning to program in #{language}." +end +introduction_with_language("Henok","Ruby") + +def introduction_with_language_optional(name, language = "Ruby") + puts "hi, my name is #{name} and i am learning to program in #{language}." +end +introduction_with_language_optional("Henok","Ruby") +introduction_with_language_optional("Henok") + + +