Quiz · Functions · lesson 6 of 10
Quiz — recursion
What does the program print?
package main
import "fmt"
func count(n int) {
if n > 0 {
fmt.Print(n)
count(n - 1)
fmt.Print(n)
}
}
func main() { count(3) }Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.