Write a program that generates the following output :
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answers
Answered by
2
Answer:
public class Pattern
{
public static void main(String args[ ])
{
int a,b;
for(a=1;a<=5;a++)
{
for(b=1;b<=a;b++)
{
System.out.print(a+" ");
}
System.out.println();
}
}
Output:
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Copy paste this program in Java you will get the output.
Answered by
2
Answer:
USING PYTHON
Similar questions
Math,
2 months ago
Math,
2 months ago
Math,
2 months ago
English,
5 months ago
India Languages,
11 months ago