diff options
| author | Tim Pearse <[email protected]> | 2022-10-12 16:28:21 -0700 |
|---|---|---|
| committer | Tim Pearse <[email protected]> | 2022-10-12 16:28:21 -0700 |
| commit | cf82bbd4f5cee0ad0dd71aca77d504296d65ea6b (patch) | |
| tree | 8cf5941bcd2c393d70c1ebe10b40d7eb0c09a4a8 /cst116-Ch7-Pearse-Pseudocode.txt | |
| parent | Change 0 : Uploading gitignore file (diff) | |
| download | archived-cst116-ch7-debugging-legokid1503-main.tar.xz archived-cst116-ch7-debugging-legokid1503-main.zip | |
Diffstat (limited to 'cst116-Ch7-Pearse-Pseudocode.txt')
| -rw-r--r-- | cst116-Ch7-Pearse-Pseudocode.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cst116-Ch7-Pearse-Pseudocode.txt b/cst116-Ch7-Pearse-Pseudocode.txt new file mode 100644 index 0000000..c6d3b55 --- /dev/null +++ b/cst116-Ch7-Pearse-Pseudocode.txt @@ -0,0 +1,22 @@ +main(){ + int age + + print("Enter your age:") + input(age) + + if (age == 1){ + print("First Birthday") + } + elif (age >= 12 && age <= 19){ + print("Teenager") + } + elif (age < 12){ + print("Child") + } + elif (age > 62){ + print("Senior") + } + else{ + print("Adult") + } +}
\ No newline at end of file |