Computer Science, asked by FAIZAN9440, 9 months ago

public class MyClass { public static void main(String args[]) { for (int i = 1; i <= 2; i++) { for (int j = 1; j <= 3; j++) { for (int k = 1; k <= 4; k++) { System.out.print("*"); } System.out.print("!"); } System.out.println(); } } }

Answers

Answered by ullas456
1

Answer:

****!****!****! ****!****!****!

Explanation:

public class MyClass

{

public static void main(String args[])

{

for (int i = 1; i <= 2; i++)

{

for (int j = 1; j <= 3; j++)

{

for (int k = 1; k <= 4; k++)

{

System.out.print("*");

}

System.out.print("!");

}

System.out.println(" ");

}

}

}

Similar questions