wap to print a pattern-11111 22222 11111 22222
Answers
Answered by
0
Answer:
11111 22222 11111 22222
Explanation:
Answered by
0
import java.util.*;
class pattern
{
public static void main(String args[])
{
for(int k=1;k<=2;k++)
{
for(int i=1;i<=2;i++)
{
for(int j=1;j<=5;j++)
{
System.out.print(i+"");
}
System.out.println();
}
}
}
}
By AYUSH SINGH
PLEASE MARK IT AS BRAINLIEST.
Similar questions