Computer Science, asked by manveer832, 11 months ago

write a program to print pattern
1 22 333 4444 55555​

Answers

Answered by stylishtamilachee
9

Answer:

import java.util.* ;

public class GenerateTriangle

{

public static void Triangle(int n)

{

for (int i = 1 ; i < = n ; i++ )

{

for (int j = 1 ; j < = i ; j++ )

{

System.out.print(" " + i) ;

System.out.println( ) ;

}

}

}

Nested Loop:

A loop inside body of another loop is called nested loop.

A nested loop is used when functioning of a loop is to be repeated a number of times.

Answered by anindyaadhikari13
23

Answer:

See this.

Explanation:

&lt;marquee&gt;Hope it helps you...Please mark this answer as the brainliest and follow me.&lt;/marquee&gt;

Attachments:
Similar questions