Examples
This page will cover example programs in Rune to help you learn the basics.
Hello World
Just prints hello world, not much else to it
Fibonacci Sequence
This program calculates 50 fibonacci numbers by starting with 0 and 1 in an array, then computing their sum, and then repeating this process of calculating the sum of the last 2 numbers and pushing the result to the array. Also note that the variables are typed with their type before the name, this is required for defining variables but if the type if to be inferred use "(_)" as the type.
Math Expression Parser
This program takes input using the input() function, then parses the inputted math expression using the math() function, and then prints the result. The math() function can parse most math expressions and includes even more advanced functions such as trigonometric functions and logarithms.