diff options
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 |