plz help me with this
Attachments:
Answers
Answered by
0
Answer:
import java.io.*;
import java.util.*;
public class Pattern{
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
for(int i=0;i<n;i++)
{
for(int j=0;j<=i;j++)
{
System.out.print(i+1);
}
System.out.println("\n");
}
}
}
Marks as brainliest : )
Similar questions
Computer Science,
3 months ago
Business Studies,
3 months ago
Chemistry,
11 months ago
Biology,
11 months ago