Skip to content

Commit

Permalink
Remove usage of deprecated method in fibonacci
Browse files Browse the repository at this point in the history
  • Loading branch information
NGSpace committed Dec 19, 2024
1 parent 3c54ac8 commit fd37291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/assets/hudder/fibonacci
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#while _N<93
{_N++}
{numstr=str(num1,true)}
{expectedwidth=expectedwidth+(strwidth(concat(numstr," ")))}
{expectedwidth=expectedwidth+(strwidth(numstr + " "))}
#if expectedwidth>=width/2
{numstr=concat("\n", numstr)}
{numstr="\n" + numstr}
{expectedwidth=0}
{fibonacci=concat(fibonacci, concat(numstr," "))}
{fibonacci=fibonacci + numstr + " "}
{num3=num2+num1}
{num1=num2}
{num2=num3}
;topleft,1;
Here are the numbers of the fibonacci sequence (up to 93rd number):
{fibonacci}
{fibonacci}

0 comments on commit fd37291

Please sign in to comment.