From 1e2ef412baf30e1a17a39a626bc790af82d2e06b Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 5 Oct 2022 14:17:23 -0700 Subject: 3.3 --- CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index d795af0..a4c6726 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -44,6 +44,9 @@ * 2) When prompted, enter the value of 10 for your age. * Done * 3) Why does the program print both "Child" and "Adult"? +* +* Because the code always prints adult after the "if" statements. +* * 4) Re-run the program this time with debugging and run to * Breakpoint 2. * 5) Why is the action with the else executing? -- cgit v1.2.3