frg 2.1.0

Compiled programming language with frogs!
1
2
3
4
5
6
7
8
9
10
11
12
13
int(int) factorial = (index) {
    int a = 1;

    (1..=index).for_each((i) {
        a = a * i
    })
    a
}

int target_fac = @int(@input("What factorial? "))
int result = factorial(target_fac)
@print("{target_fac}th factorial is {result}")