mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Adjusted timetable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user