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
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
Science,
4 months ago
Math,
4 months ago
English,
9 months ago
Geography,
9 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago