Write an endless loop, write some confusing gotos...
The rules are simple: Write a program that never stops. Language: Any. Try to keep it short and confusing :D
Here is an example:
for(i=0; i<10; i++){
for(j=0; i<10; j++){
System.out.println("Blubb.");
}
}
Post your funny, creative solutions below.
Latest comments (78)
C#
The original post was tagged with javascript and dev.to has a bias toward javascript which is why it was tagged with that.
What language would you have picked? Because most languages do not have empty statements evaluate to true, so the block would have had to be
for(;1;);which is not as neat IMOC
`T
2 bytes. Language: MATL
Using C and TCO:
C++
C++ (even though the syntax highlithing is set to python)
Elixir:
Infinite insult in C