From 5800ba1ef3bc958a7fc3b9292428ba95a15c42a6 Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Sat, 8 Oct 2022 13:02:09 -0700 Subject: Answered Q6 --- CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp') diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index 896b37d..8a7d023 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -15,6 +15,9 @@ * the value in age is what you typed in. * 5) Step over the if statement. * 6) Why did the value in age change? +* +* "if" statement is set up incorrectly, it changed value of "age" to 1 instead of comparing the input variable "age" to the number 1 +* * 7) Fix the problem and repeat Steps 2 – 5 to verify the * problem was corrected. * 8) Stop debugging. -- cgit v1.2.3