Computer Science, asked by revanthgowda2002, 1 day ago

Print the following pattern for the given N number of rows.
Pattern for N = 4
1
11
111
1111
Input format :
Integer N (Total no. of rows)
Output format :
Pattern in N lines

Answers

Answered by Ronithreddy
5

Answer:

public class pattern

{

public static void main(String args[])

{

System.out.println("1");

System.out.println("11");

System.out.println("111");

System.out.println("1111");

}

}

Similar questions