6
Jump to navigation
Jump to search
6 is the constant language ConstantLanguage("6").
All of the programs is output 6 in this Esolang.
Name
All kind of 6(such as 六, 陆, VI, Six, etc.) are all the name of this Esolang.
Examples
Print 6
Self interpreter
Python polyglot
print(6)
Quine
6
Implementation
A lot of interpreter.
Befunge
6.@
中文
定义字符串变量 src 。 输入 src 。 输出6。
C++
#include<iostream>
#include<cstring>
using namespace std;
string src;
int main()
{
getline(cin, src);
cout << 6 << endl;
return 0;
}
Python
src = input("Please input: ")
print(6)
HZCode
六说停
Brainfuck
++++++++[>++++++<-]>++++++.
Java
public class Main {
public static void main(String args[]) {
System.out.println("6");
}
}
Batch File
@echo off set /p input=src: echo 6 pause
15
;_@6#
'Python' is not recognized
@|6
Online interpreters
The interpriter in Interpret Esolangs Online (source)
Try it implementation
function six() { o = "6\n" }
Lua
x = io.read() print(6)
HTML
<h1>6 Interpreter</h1>
<p>Output: <text id="output"></text></p>
<input id="code">
<button onclick="document.getElementById('output').innerHTML = run()">Submit</button>
<script>
function run(){
return 6;
};
</script>