aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-10-22 17:52:57 -0700
committerjacobdw22 <[email protected]>2022-10-22 17:52:57 -0700
commitc4a34e0403a8f17b07ea384201f31b26ceee96d6 (patch)
tree960adeaee4a119ce713556c66c18cabff5d2ad35
parentStarted pseudo code (diff)
downloadcst116-ch10-debugging-jacobdw22-c4a34e0403a8f17b07ea384201f31b26ceee96d6.tar.xz
cst116-ch10-debugging-jacobdw22-c4a34e0403a8f17b07ea384201f31b26ceee96d6.zip
simple changes
-rw-r--r--cst116-ch10-debugging-wilson-pseudo-code.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/cst116-ch10-debugging-wilson-pseudo-code.txt b/cst116-ch10-debugging-wilson-pseudo-code.txt
index 46a65d4..8b89fb9 100644
--- a/cst116-ch10-debugging-wilson-pseudo-code.txt
+++ b/cst116-ch10-debugging-wilson-pseudo-code.txt
@@ -8,8 +8,14 @@ READ name[1];
DISPLAY "Welcome " name[0] " " name[1] "! Hope all is well";
-FOR (int x = 0; x < SIZE; x++)
+FOR (int x = 0; x < SIZE; x++);
varX[x] = x;
-FOR x = 0, IF x < SIZE, x++
- varY[x] = x + 100; \ No newline at end of file
+FOR x = 0, IF x < SIZE, x++;
+ varY[x] = x + 100;
+
+
+SET varX[1] = { 99 };
+
+FOR x = 0, IF x < SIZE, x++;
+ varZ[x] = varX[x] + varY[x]; \ No newline at end of file