Question: Where am I going wrong? I am using Java to try and solve. PREV NEXT Workbench ? 0 Exercise 20685 X WORK AREA RESULTS Given
Where am I going wrong? I am using Java to try and solve.

PREV NEXT Workbench ? 0 Exercise 20685 X WORK AREA RESULTS Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total. Use no variables other than n, k, and total. SUBMIT 7 of 7: 2018-06-26 11:47:43 - W 1k=1; 2 total = 0; 4 do total = total + (n * n * n); k+= 1; n=n-1; 7 10 while(no)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
