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

edited body
Source Link
pajonk
  • 19.4k
  • 5
  • 29
  • 78

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.


If leading whitespace is allowed:

R, 74(削除) 74 (削除ここまで) 69 bytes

b=1
repeat{cat(sprintf("%*d+%d=%d
",F<-F+nchar(+T)+1,T,b,s<b<-T+bT+(T=b));T=b;b=s})

Try it online! Try it online!

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.


If leading whitespace is allowed:

R, 74 bytes

b=1
repeat{cat(sprintf("%*d+%d=%d
",F<-F+nchar(+T)+1,T,b,s<-T+b));T=b;b=s}

Try it online!

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.


If leading whitespace is allowed:

R, (削除) 74 (削除ここまで) 69 bytes

b=1
repeatcat(sprintf("%*d+%d=%d
",F<-F+nchar(+T)+1,T,b,b<-T+(T=b)))

Try it online!

added 421 characters in body
Source Link
pajonk
  • 19.4k
  • 5
  • 29
  • 78

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.


If leading whitespace is allowed:

R , 74 bytes

b=1
repeat{cat(sprintf("%*d+%d=%d
",F<-F+nchar(+T)+1,T,b,s<-T+b));T=b;b=s}

Try it online!

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.


If leading whitespace is allowed:

R , 74 bytes

b=1
repeat{cat(sprintf("%*d+%d=%d
",F<-F+nchar(+T)+1,T,b,s<-T+b));T=b;b=s}

Try it online!

Source Link
pajonk
  • 19.4k
  • 5
  • 29
  • 78

R, 76 bytes

l=b=1
repeat{cat(sprintf("%*d+%d=%d
",l,T,b,s<-T+b));l=l+nchar(b)+1;T=b;b=s}

Try it online!

Outputs infinitely.

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