Strange Loop
Print “This sentence will run on forever and ”;
x==0;
Do While x>=0 {
Print “ever and ”;
x==x+1;
}.
[Editor Note: This written in pseudo computer code. It will run with minor modifications of syntax on any basic programming language.
The program creates an infinite sentence that reads: “This sentence will run on forever and ever and everf and ever and ever and ever and ever and ever....” Since x starts at ‘0’ and increments up as x+1, the condition”Do While x is greater than or equal to zero” will always be true. This means the output will be infinite, and by definition, no longer sentence can ever be written (though other infinite sentences can be written, though they’de be of equally infinite length).]
Strange Loop
Print “This sentence will run on forever and ”;
x==0;
Do While x>=0 {Print “ever and ”;
x==x+1;}.
[Editor Note: This sentence is written in pseudo computer code. It will run with minor modifications of syntax on any basic programming language.
The program creates an infinite sentence that reads: “This sentence will run on forever and ever and ever and ever and ever and ever and ever and ever....” Since x starts at ‘0’ and increments up as x+1, the condition ”Do While x is greater than or equal to zero” will always be true. This means the output will be infinite, and by definition, no longer sentence can ever be written (though other infinite sentences can be written, though they’d be of equally infinite length).]