Merge pull request #150 from neverovski/patch-1

Update zero factorial Golang
This commit is contained in:
Aditya Bhargava
2020-09-14 10:49:40 -05:00
committed by GitHub

View File

@@ -3,7 +3,7 @@ package main
import "fmt"
func fact(x int) int {
if x == 1 {
if x == 0 {
return 1
}