package main import "fmt" func su(n int) int { if n == 0 { return 1 } else { return n * su(n-1) } } func main() { fmt.Println(su(7)) }