diff options
Diffstat (limited to 'Pseudocode for Ch9 Debugging.txt')
| -rw-r--r-- | Pseudocode for Ch9 Debugging.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Pseudocode for Ch9 Debugging.txt b/Pseudocode for Ch9 Debugging.txt new file mode 100644 index 0000000..745a723 --- /dev/null +++ b/Pseudocode for Ch9 Debugging.txt @@ -0,0 +1,12 @@ +Define function getage
+display "Please enter your age: "
+store input into variable age
+
+define days as output from function calcdays
+move to function calcdays
+define variable days as an integer
+set days equal to years * days in a year (365)
+
+move to function print results
+display age and "! Boy you are old!"
+display "Did you know that you are at least ", days, " days old?"
|