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
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
Hindi,
19 hours ago
Social Sciences,
19 hours ago
Math,
1 day ago
Hindi,
8 months ago
English,
8 months ago