From e6df1ddbce38502669e1e69c34579a397696b0dd Mon Sep 17 00:00:00 2001 From: abd00l4h <114624309+abd00l4h@users.noreply.github.com> Date: Wed, 19 Oct 2022 16:49:02 -0700 Subject: Update CST116-Ch9-PsuedoCode-Havaldar.txt --- CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt b/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt index 658687b..4784e03 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt +++ b/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt @@ -4,9 +4,9 @@ Initialize constant integer DAYS_PER_YEAR = 365 Initialize function GetAge() Initialize function CalcDays(int age) Initialize function PrintResults(int age, int days) + Initialize integer age = 0 Initialize integer days = 0 - run function GetAge() Ask user for their age and store value as age return age @@ -17,4 +17,4 @@ set output of CalcDays = days run function PrintResults(days, age) Output user's age with sentence that tells them how many days they are old at least -End Program \ No newline at end of file +End Program -- cgit v1.2.3