Convert the following for-loop into an equivalent while-loop…
Convert the following for-loop into an equivalent while-loop as closely as possible using the code snippet bank and template below . It is not enough for the loop to be functionally identical; it needs to follow any patterns mentioned in lecture. int sol = 0;for (int i = 10; i < 100; i++) { sol += i; System.out.println("Solution: " + sol);} int sol = 0;1._____________________ 2._____________________sol += i;3._____________________4._____________________}
Read Details