Skip to content

Commit

Permalink
refactor: recursive fibo example set n without user input
Browse files Browse the repository at this point in the history
  • Loading branch information
zestones committed Feb 11, 2025
1 parent 842abb5 commit 5ef3484
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ proc display_fibonacci_chart(num : int) {
}

proc main() {
print("Enter the position in Fibonacci sequence (max 50): ");
input("%d", n);
n := 12;

if (n < 0) {
print("Fibonacci is undefined for negative numbers.\n");
Expand Down

0 comments on commit 5ef3484

Please sign in to comment.