Java for loop Question 7

Question

What is the output of the following code?

public class Main {
  public static void main(String[] args) {
    for (int i = 1; i <= 5; i++) {
      for (int j = 1; j <= 3; j++) {
        for (int k = 1; k <= 4; k++)
          System.out.print('*');

        System.out.println();/*from   w w w  .  jav  a 2s  .c  o  m*/
      }

      System.out.println();
    }
  }
}


****
****
****

****
****
****

****
****
****

****
****
****

****
****
****



PreviousNext

Related