diff options
| author | Andrei F <[email protected]> | 2022-10-12 22:00:43 -0700 |
|---|---|---|
| committer | Andrei F <[email protected]> | 2022-10-12 22:00:43 -0700 |
| commit | 44936b2b54ca3b7c605042d442fb389a2eddff2f (patch) | |
| tree | cb07c4b0c50e139e19f5ba0ff92fae8c70adceb3 /CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt | |
| parent | Added output to the text file (diff) | |
| download | cst116-ch7-debugging-florea-main.tar.xz cst116-ch7-debugging-florea-main.zip | |
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt b/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt new file mode 100644 index 0000000..60673c9 --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt @@ -0,0 +1,19 @@ +define age as integer and set it to 0 + +display "Enter your age: " +take user input for variable age + +compare if age is equal to 1 + display "First Birthday" + +compare else if age is more than or equal to 12 OR less than or equal to 19 + display "Teenager" + +compare else if age is less than 12 + display "Child" + +compare else if age is more than 62 + display "Senior" + +else (used as catching anything else) + display "Adult"
\ No newline at end of file |