Files
Toy/scripts/benchpress.toy
2025-02-18 08:34:29 +11:00

17 lines
298 B
Plaintext

//calculate the nth fibonacci number, and print it
var counter: int = 0;
var first: int = 1;
var second: int = 0;
//This causes integer overflow, but that's fine for now
while (counter < 100_000) {
var third: int = first + second;
first = second;
second = third;
print third;
++counter;
}