Question 9 How many times does the body of the inner loop execute? What is the final value of the variable count after t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 9 How many times does the body of the inner loop execute? What is the final value of the variable count after t
Question 9 How many times does the body of the inner loop execute? What is the final value of the variable count after the outer loop has terminated? int count = 3; while (count >= 0 ) { for(int total = 5; total > 0; total = total - 2) { count--: } count++; } A) 6 times, count = -1 B) 3 times, count = 0 C) 4 times, count = -1 5 Points (D) 8 times, count = -4