Computer Science, asked by anishadadwal33, 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 IamGenesis
0

Output:

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

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

Similar questions