[SOLVED] SOLVED:while Loop

10.99 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

rar file icon ConvertLoop.rar (3.2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Open the provided file ConvertLoop.java Convert the following code so that it uses nested while statements instead of for statements. Place the new code at the end of the code in ConvertLoop.java. int s = 0; int t = 1; for (int i = 0; i < 5; i++) { s = s + i; for (int j = i; j 0; j–) { t = t + (j-1); } s = s + t; System.out.println(“T is ” + t); } System.out.println(“S is ” + s);

  • ConvertLoop.rar