Computer Science, asked by masterman221, 7 months ago

plz help me with this​

Attachments:

Answers

Answered by rahmanbinjaffar
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