diff options
| author | prestonderek <[email protected]> | 2022-10-12 21:06:08 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-12 21:06:08 -0700 |
| commit | 13e0e9179edcbc536a5d6da2512006892074cea8 (patch) | |
| tree | 4964effa5940dd5e2457b03e5776a1fcf3e0f322 /CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt | |
| parent | Exersize 3 complete. (diff) | |
| download | cst116-ch7-debugging-prestonderek-main.tar.xz cst116-ch7-debugging-prestonderek-main.zip | |
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt new file mode 100644 index 0000000..357922f --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt @@ -0,0 +1,23 @@ +pseudocode for Ch7 debugging + + + +begin main function + +int age = 0 + +print 'enter your age' +input age + +if age is equivalent to 1 + print 'First birthday' +else if age >= 12 and <= 19 + print 'teenager' +else if age < 12 + print 'child' +else if age >62 + print 'senior' +else + print 'adult' + +end main function
\ No newline at end of file |