(This is for java)
I need to rewrite this code that uses a while loop.
public class Practice6 {テつテつテつテつ public static void main (String [] args){
テつテつテつテつテつテつテつ int sum = 2, i=2;
テつテつテつテつテつテつ do {sum *= 6;テつテつ i++;テつテつ } while (i < 20);System.out.println(\"Total is: \" + sum);
}
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
(Save $1 )
One time Pay
(Save $5 )
Billed Monthly
*First month only
You can see the logs in the Dashboard.