9999
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
9999 is joke esoteric programming language which working in 9999 year.
language overwiew
9999 is counter which can work if now year==9999. 9999 using this commands:
Command | Description |
---|---|
,
|
Outputs the accumulator as an ASCII character |
.
|
Outputs the accumulator as number |
-
|
Decrements the accumulator by 1 |
+
|
Increments the accumulator by 1 |
implementation
Python
n=0 import datetime from datetime import datetime now = datetime.now() if now.year == 9999: c=input() for ch in c: if ch=="+":n+=1 if ch=="-":n-=1 if ch==".":print(n) if ch==",":print(chr(n)) else:print("SyntaxError") else: print("YearError")