6

From Esolang
Jump to navigation Jump to search

6 is an Esolang developed by PSTF.

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 version

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

import java.io.*;
import java.util.*;
public class Main {
    public static void main(String args[]) throws Exception {
        Scanner cin=new Scanner(System.in);
        String src=cin.nextLine;
        System.out.println("6");
    }
}

Batch File

@echo off
set /p input=src:
echo 6
echo 程序结束。按任意键退出程序。
pause

Categories