Question: Rewrite the following while loop into a for loop: double sum = 0; int count = 100; while (count > 0) {sum = sum +

Rewrite the following while loop into a for loop: double sum = 0; int count = 100; while (count > 0) {sum = sum + count; count--;}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
