User:Tommyaweosme/constant

From Esolang
Jump to navigation Jump to search

The tommyaweosme constant goes:

568756568756565687...

How it works

Pseudocode ensues:

10 make var n
20 print "56" n times
30 print "87" once
40 n is n+1
50 go to 20

How it relates to esolangs

If your programming language can't do this, theres a good chance its unusable for programming.

Implementations

The following Python script prints the tommyaweosme constant.

n = 2
while True:
    for i in range(1, n):
        print("56", end="")
    print("87", end="")
    n += 1