diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-12 20:47:03 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-12 20:47:03 -0700 |
| commit | 696633c89da882e8d652b178bc6f40a5df33d8af (patch) | |
| tree | 7f4602a7c73bc4769a3fc31b6802a2dce9dcd079 /CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt | |
| parent | All brackets added and else statement working (diff) | |
| download | cst116-ch7-cyrus-main.tar.xz cst116-ch7-cyrus-main.zip | |
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt b/CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt new file mode 100644 index 0000000..b84a4e9 --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt @@ -0,0 +1,15 @@ +set int age to be 0; +print "Enter your age: "; +set age to be the input value; + +if age is 1, print "First Birthday" and create a new line; + +otherwise, if age is greater than or eqal to 12, AND age is less than or equal to 19, print "Teenager" and create a new line; + +otherwise, if age is less than 12, print "Child" and create a new line; + +otherwise if age is greater than 62, print "Senior" and create a new line; + +and if none of the others are true, print "Adult", and create a new line; + +end
\ No newline at end of file |