aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/functions/functions3
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/functions/functions3')
-rw-r--r--exercises/functions/functions3/main.go17
1 files changed, 17 insertions, 0 deletions
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)
+ }
+}