Hacker News new | ask | show | jobs
by Immortalin 3982 days ago
Go!

func factorial(x int) (result int) { if x == 0 { result = 1; } else { result = x * factorial(x - 1); } return; }