Adjusted timetable

This commit is contained in:
2025-02-18 08:34:29 +11:00
parent 639250f028
commit 3a82593e4d
8 changed files with 24 additions and 41 deletions

View File

@@ -1,17 +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;
//This causes integer overflow, but that's fine for now
while (counter < 100_000) {
var third: int = first + second;
first = second;
second = third;
var third: int = first + second;
first = second;
second = third;
print third;
print third;
++counter;
++counter;
}