From ba5c0dc737976d6e20b4f2a544d8bfdfb07a4939 Mon Sep 17 00:00:00 2001 From: MaurĂ­cio Antunes Date: Sat, 12 Nov 2022 08:09:30 -0300 Subject: feat: add one more functions exercise --- exercises/functions/functions3/main.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 exercises/functions/functions3/main.go (limited to 'exercises/functions') diff --git a/exercises/functions/functions3/main.go b/exercises/functions/functions3/main.go new file mode 100644 index 0000000..6746570 --- /dev/null +++ b/exercises/functions/functions3/main.go @@ -0,0 +1,17 @@ +// functions2 +// Make me compile! + +// I AM NOT DONE +package main + +import "fmt" + +func main() { + call_me() +} + +func call_me(num int) { + for n := 0; n <= num; n++ { + fmt.Printf("Num is %d\n", n) + } +} -- cgit v1.2.3-70-g09d2