.exe
Jump to navigation
Jump to search
.exe is a programming language that takes a .exe file as its source code. So technically, you could say that you coded Minecraft using .exe.
Code execution
Jokes on you, it just runs the .exe file.
So, to write a program, do it in any other language you want.
Examples
Hello, World!
A Hello, World! program can pretty much be written with any language you want. Here are some examples:
Python
print("Hello, World!")
C
#include <stdio.h> int main() { printf("Hello, World!"); return 0; }
C++
#include <iostream> int main() { std::cout << "Hello, World!"; return 0; }
Javascript
function main() { console.log("Hello, World!"); }
brainfuck
>++++++++[>+++++++++>++++++++++++>+++++++++++++>++++++++++++++>++++++>++++>+++++++++++>++++++++++++++[<]>-]>.>+++++.>++++..>-.>----.>.>-.<<<.+++.<.<-.>>>>+.
><>
"Hello, World!"0r>:o?v; ^ <
Befunge-93
<v"Hello, World!" >,,,,,,,,,,,,,@
Random-ass Turing Complete Language
ca "a Hello, 'a "a world! -asr -aoc -aoc -aoc -aoc -aoc -aoc -aoc -aoc -aoc -aoc -aoc -aoc -aoc
AsciiDots
.-$"Hello, World!"
+Output
"Hello, World!"oX
A+B problem
The A+B problem is a popular problem which takes 2 numbers as input and outputs their sum.
Python
a = int(input()) b = int(input()) print(a + b)
Or, the minimised form:
print(int(input()) + int(input()))
Brainfuck+2
';>;<[>+<-]>:
+Output
i&i&+oX
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b << endl; return 0; }
><>
ii+n;
Befunge-93
&&+.@
Random-ass Turing Complete Language
ca -aii -aii -aa+ -aoi
Drive-In Window
Note: I haven't tested this yet, and I don't exactly know if this will work.
Hi, welcome to A Plus B Restaurant. Here is a menu. Addend 1: $10 Addend 2: $20 May I take your order? OK, how much money should Person 1 have? OK, how much money should Person 2 have? Person 2 would also like what Person 1 has. Person 1 will pay for his order! OK, that will be $5.94. Thanks for coming!
Pizza Delivery
?d?a[d+a-]d`.
AsciiDots
.-#?--\ .-#?-{+}-$#