13 lines
137 B
Plaintext
13 lines
137 B
Plaintext
import sys
|
|
|
|
main() {
|
|
sys.exit(fibonacci(10))
|
|
}
|
|
|
|
fibonacci(x) {
|
|
if x <= 1 {
|
|
return x
|
|
}
|
|
|
|
return fibonacci(x - 1) + fibonacci(x - 2)
|
|
} |