solutions/cw2/fib.while
changeset 920 7af2eea19646
parent 894 02ef5c3abc51
--- a/solutions/cw2/fib.while	Sun Sep 17 19:12:57 2023 +0100
+++ b/solutions/cw2/fib.while	Tue Sep 19 09:54:41 2023 +0100
@@ -1,7 +1,7 @@
-write "Fib";
+write "Fib: ";
 read n;  
-minus1 := 1;
-minus2 := 0;
+minus1 := 0;
+minus2 := 1;
 while n > 0 do {
        temp := minus2;
        minus2 := minus1 + minus2;