diff --git a/scripts/benchpress.toy b/scripts/benchpress.toy new file mode 100644 index 0000000..e1714b1 --- /dev/null +++ b/scripts/benchpress.toy @@ -0,0 +1,17 @@ +//calculate the nth fibonacci number, and print it +//can't use functions yet + +var counter: int = 0; + +var first: int = 1; +var second: int = 0; + +while (counter < 100_000) { + var third: int = first + second; + first = second; + second = third; + + print third; + + ++counter; +} \ No newline at end of file