aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/functions/functions2/main.go
blob: 39915b57d199bd3e5da5322897a7c90ec3e14828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// functions2
// Make me compile!

package main

import "fmt"

func main() {
	callMe(10)
}

func callMe(num int) {
	for n := 0; n <= num; n++ {
		fmt.Printf("Num is %d\n", n)
	}
}