package main func fact(x int) int { if (x == 0) || (x == 1) { return 1 } return x * fact(x-1) }