From 2b5c9cc455a35b665552e11015139f937feb39eb Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Tue, 11 Oct 2022 08:24:43 -0700 Subject: Answer E3 Q5 --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index 539e115..b6fbd4b 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -51,6 +51,8 @@ * statement. * 5) Run the program to Breakpoint 2 and verify that the output * displayed on the screen is 0 – 9. +* +* Correct, displays 0 to 9 and nothing else when running to breakpoint 2 * * Debugging Exercise 4 * @@ -73,8 +75,8 @@ int main() // Breakpoint 1 // Put a breakpoint on the following line - while (i < 0) - cout << i << endl; + while (i < 10) + cout << i++ << endl; // Breakpoint 2 // Put a breakpoint on the following line -- cgit v1.2.3