NH3
Jump to navigation
Jump to search
- The title of this article is not correct because of technical limitations. The correct title is actually NH3.
NH3 is an esolang by User:None1 and inspired by HQ9+.
Commands
N
: Does nothing.
H
: Outputs Hello World!
3
: Outputs the lyrics of "3 bottles of beer", which is as follows:
3 bottles of beer on the wall, 3 bottles of beer. Take one down and pass it around, 2 bottles of beer on the wall. 2 bottles of beer on the wall, 2 bottles of beer. Take one down and pass it around, 1 bottle of beer on the wall. 1 bottle of beer on the wall, 1 bottle of beer. Take one down and pass it around, No bottles of beer on the wall.
Examples
Hello World
H
Quine
Hello World!
3 bottles of beer
3
APLWSI interpreter
N
Interpreter
Python
c=input() for i in c: if i=='H': print('Hello World!') if i=='3': print('''3 bottles of beer on the wall, 3 bottles of beer. Take one down and pass it around, 2 bottles of beer on the wall. 2 bottles of beer on the wall, 2 bottles of beer. Take one down and pass it around, 1 bottle of beer on the wall. 1 bottle of beer on the wall, 1 bottle of beer. Take one down and pass it around, No bottles of beer on the wall.''')