13 lines
121 B
Plaintext
13 lines
121 B
Plaintext
import sys
|
|
|
|
main() {
|
|
sys.exit(factorial(5))
|
|
}
|
|
|
|
factorial(x) {
|
|
if x <= 1 {
|
|
return 1
|
|
}
|
|
|
|
return x * factorial(x - 1)
|
|
} |