Rewrite the code using "while Loop" instead of "for Loop". Output must remain the same. CODE: import java.util.*; public class main { public static void main(String[] args) { int[] numbers = new...


Rewrite the code using "while Loop" instead of "for Loop". Output must remain the same.




CODE:



import java.util.*;


public class main {


 public static void main(String[] args)


 {


     int[] numbers = new int[10];



   for(int i=0; i < numbers.length;="">


         numbers[i] = i * 3;



   for(int i=0; i < numbers.length;="">


         System.out.print(numbers[i] / 3 + " ");


    System.out.println();


}


}



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here