fibonacci.cl: Move the input number out of the string
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
// Calculate Fibonacci numbers
|
// Calculate Fibonacci numbers
|
||||||
|
|
||||||
fn main() -> i128 {
|
fn main() -> i128 {
|
||||||
print("fib(10): ", fib(10));
|
let num = 10;
|
||||||
|
print("fib(", num, "): ", fib(num));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implements the classic recursive definition of fib()
|
/// Implements the classic recursive definition of fib()
|
||||||
|
|||||||
Reference in New Issue
Block a user