diff options
Diffstat (limited to 'cst116-ch10-debugging-wilson-pseudo-code.txt')
| -rw-r--r-- | cst116-ch10-debugging-wilson-pseudo-code.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cst116-ch10-debugging-wilson-pseudo-code.txt b/cst116-ch10-debugging-wilson-pseudo-code.txt index 8b89fb9..0c8ab5a 100644 --- a/cst116-ch10-debugging-wilson-pseudo-code.txt +++ b/cst116-ch10-debugging-wilson-pseudo-code.txt @@ -18,4 +18,12 @@ FOR x = 0, IF x < SIZE, x++; SET varX[1] = { 99 }; FOR x = 0, IF x < SIZE, x++; - varZ[x] = varX[x] + varY[x];
\ No newline at end of file + varZ[x] = varX[x] + varY[x]; + + +DEFINE int x; + +DISPLAY " \t x \t y \t z\n\n"; + + for (x = 0; x < SIZE; x++); + DISPLAY << "\t" << set width(3) << varX[x] "\t " << varY[x] "\t " << varZ[x] << endl; |