From 5e4e70a72e6d887ac8d9e09156432a723e34cbe1 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 26 Feb 2024 15:11:28 -0600 Subject: [PATCH] fibonacci.cl: Move the input number out of the string --- sample-code/fibonacci.cl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sample-code/fibonacci.cl b/sample-code/fibonacci.cl index e87b3f5..75444e1 100644 --- a/sample-code/fibonacci.cl +++ b/sample-code/fibonacci.cl @@ -1,7 +1,8 @@ // Calculate Fibonacci numbers fn main() -> i128 { - print("fib(10): ", fib(10)); + let num = 10; + print("fib(", num, "): ", fib(num)); } /// Implements the classic recursive definition of fib()