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 393 characters in body
Source Link
TuxCrafting
  • 4.8k
  • 3
  • 34
  • 46

Wat, 26 + 1 = 37 bytes

åÅåó#ÐÑÅ

å read a character, Å output it and the IP wrap.(This code don't have any rapport with DNA)

Explanation:

åó#ÐÑÅ
å Read a character
 ó Duplicate the top of the stack
 # Skip the next character
 Ð End the program
 Ñ If the top of the stack is 0, go backward (execute Ð and end the program), otherwise go forward
 Å Print the character on the top of the stack
 After, the IP wrap and the line is reexecuted

Wat, 2 + 1 = 3 bytes

åÅ

å read a character, Å output it and the IP wrap.

Wat, 6 + 1 = 7 bytes

åó#ÐÑÅ

(This code don't have any rapport with DNA)

Explanation:

åó#ÐÑÅ
å Read a character
 ó Duplicate the top of the stack
 # Skip the next character
 Ð End the program
 Ñ If the top of the stack is 0, go backward (execute Ð and end the program), otherwise go forward
 Å Print the character on the top of the stack
 After, the IP wrap and the line is reexecuted
Source Link
TuxCrafting
  • 4.8k
  • 3
  • 34
  • 46

Wat, 2 + 1 = 3 bytes

åÅ

å read a character, Å output it and the IP wrap.

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