#include <stdio.h>  
      int main()  
      {
          int i,  j, n;
          printf("Enter number of rows : ");
          scanf("%d",&n);
          for(i=1; i<=n; i++)
          {
              for(j=1; j<=i; j++)
              {
                 printf("%d ",j);
              }
              printf("\n");
          }    
          return 0;
      }  
      
      C language logo

      Pyramid number pattern

      0

      0

      avatar
      drzyadav

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.