Page 1 of 1

Question 9 How many times does the body of the inner loop execute? What is the final value of the variable count after t

Posted: Tue Jul 05, 2022 10:26 am
by answerhappygod
Question 9 How Many Times Does The Body Of The Inner Loop Execute What Is The Final Value Of The Variable Count After T 1
Question 9 How Many Times Does The Body Of The Inner Loop Execute What Is The Final Value Of The Variable Count After T 1 (28.2 KiB) Viewed 18 times
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