Monday, 6 January 2020

HAY THANK FOR VISIT

<<<<<<LET'S START WITH ANOTHER QUESTION>>>>>>>>>>>>>

QUESTION-----TO PRINT THE PATTRAN GIVEN BELOW:-

                      1
                      12
                      123
                      1234
                      12345

class PAT1
{
  void main()
  {
      for(int i=1;i<=5;i++)
      {
          for(int j=1;j<=i;j++)
          System.out.print(j);
        System.out.println();
      }
    }
}

OUTPUT---

No comments:

Post a Comment

HAY THAKYOU FOE VISIT

Program(python):-Find duplicates in an array (Geeks for geek problem)

QUESTION:- Given an array  a  of size  N  which contains elements from  0  to  N-1 , you need to find all the elements occurring more than o...