Computer Science, asked by prashisharma, 2 months ago

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Write a program to print the above pattern using nested for.​

Answers

Answered by aryanb793
1

Answer:

basic part write by yourself

I am telling you the main part of the program

int i , j;

for( i = 1; i ≤ 5; i++)

{

for( j = 1; j ≤ i; j++)

{

system.out.print(j);

}

system.out.println();

}

Similar questions