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