Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 24 characters in body
Source Link
MarcMush
  • 6.9k
  • 15
  • 18

Julia 1.0, 66(削除) 66 (削除ここまで) 65 bytes

f(a=1,b=1,n=0)=println=print(" "^n,"$a+$b=$(a+b)")f(b,a+b,n-~ndigits(a))

Try it online! Try it online!

prints infinitely. To avoid Int64 overflow, replace a=1 with a=big(1) (+5 bytes)

Julia 1.0, 66 bytes

f(a=1,b=1,n=0)=println(" "^n,"$a+$b=$(a+b)")f(b,a+b,n-~ndigits(a))

Try it online!

prints infinitely. To avoid Int64 overflow, replace a=1 with a=big(1) (+5 bytes)

Julia 1.0, (削除) 66 (削除ここまで) 65 bytes

f(a=1,b=1,n=0)=print(" "^n,"$a+$b=$(a+b)")f(b,a+b,n-~ndigits(a))

Try it online!

prints infinitely. To avoid Int64 overflow, replace a=1 with a=big(1) (+5 bytes)

Source Link
MarcMush
  • 6.9k
  • 15
  • 18

Julia 1.0, 66 bytes

f(a=1,b=1,n=0)=println(" "^n,"$a+$b=$(a+b)")f(b,a+b,n-~ndigits(a))

Try it online!

prints infinitely. To avoid Int64 overflow, replace a=1 with a=big(1) (+5 bytes)

AltStyle によって変換されたページ (->オリジナル) /