From ac743d186a5c728fcf5a1e4efec02156cb3cec1a Mon Sep 17 00:00:00 2001 From: Tesfay-Hagos Date: Wed, 25 Jan 2023 15:55:51 +0300 Subject: [PATCH] Update main.go --- .../exercises/05-greet-5-people/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/06-variables/06-project-greeter/exercises/05-greet-5-people/main.go b/06-variables/06-project-greeter/exercises/05-greet-5-people/main.go index e43625efb..a52374380 100644 --- a/06-variables/06-project-greeter/exercises/05-greet-5-people/main.go +++ b/06-variables/06-project-greeter/exercises/05-greet-5-people/main.go @@ -7,6 +7,10 @@ // Follow me on twitter: https://twitter.com/inancgumus package main +import ( + "fmt" + "os" +) // --------------------------------------------------------- // EXERCISE: Greet 5 People @@ -32,5 +36,9 @@ package main // --------------------------------------------------------- func main() { + fmt.Printf("There are %d people!\n",len(os.Args)) + for _, arg :=range os.Args[1:]{ + fmt.Printf("Hello great %s !\n",arg) + } // TYPE YOUR CODE HERE }