aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exercises/functions/functions3/main.go17
-rw-r--r--info.toml7
2 files changed, 24 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)
+ }
+}
diff --git a/info.toml b/info.toml
index 5a0f2e0..31bb3bf 100644
--- a/info.toml
+++ b/info.toml
@@ -54,3 +54,10 @@ path = "exercises/functions/functions2/main.go"
mode = "compile"
hint = """
Function parameters need to have their types explicitly declared."""
+
+[[exercises]]
+name = "functions3"
+path = "exercises/functions/functions3/main.go"
+mode = "compile"
+hint = """
+When a function expect arguments, you must pass values to them."""