Computer Science, asked by shivanishivu7637, 9 months ago

Write a java for loop program to print the following pattern:
1
2 2
3 3 3
4 4 4 4

Answers

Answered by scify
0

Answer:

for(i=1,i<5,i++)

{

for(j=i,j<=i,j++)

{

print (j)

}

print("\n")

}

Similar questions