n10
Jump to navigation
Jump to search
n10 is an esolang invented by User:AnotherUser05.
Syntax
Every command is one character followed by a numerical, conditional, or math input. Spaces aren't necessary, but if you want to, you can use them to make your code more readable.
o - Print the ASCII value. n - Print the value. i - Returns the user's input. u - get another user input. +, -, /, * - self explanatory, used in inputs. 1+1 ~ - mark down an id. j - jump to the given id. s - if the condition is true, then skip the next command. = < > ! are used. v - create a variable with the given id. w - use this variable with the given id. z - set the current variable to the input. ^ - returns a variable with the given id.
Examples
Truth Machine
usi=0j1j2~1n1j1~2n0
Cat program
uni
Adds two numbers
v1v2w1uziuw2zin^1+^2
here's a much shorter one:
v1w1uziun^1+i
Fixed Repeating Output
uv2w2zi~3n1z^2-1s^2=0j3n0
Fibonacci sequence
v0v1w1z1v2~5w2z^0+^1w0z^1w1z^2n^2j5
Not finite loop
~1j1