30
2
Your goal is to create a program that prints itself indefinitely, with a new line after each one. Thus, if your program is a one-liner, it would be repeated on every line of the output.
Example
Program:
A
Output:
A
A
A
...
Rules
- It must be a complete program, not a snippet or function.
- The program should loop forever without stack-overflow or recursion limit errors.
- Output is to stdout or closest alternative.
- No program input is accepted.
- Standard loopholes are disallowed, such as opening the program's file or accessing an external resource. Empty programs are disallowed as a standard loophole.
- If your program code ends with a trailing newline, this does not count as the necessary newline between quines, and you must print another.
- codegolf - Shortest code wins!
The title looks like only one-line programs qualify? – Paŭlo Ebermann – 2015-09-16T18:40:45.427
@PaŭloEbermann Then read the problem description. It's a witty title because it rhymes. Here's an example of a valid multi-line program: http://codegolf.stackexchange.com/a/57985/34718 . You can't expect to know everything about a challenge by only reading the title.
– mbomb007 – 2015-09-16T18:51:38.157@PaŭloEbermann It's just
while(1)println(your_code)
; – Matthew Roh – 2017-04-21T23:41:50.147