Advertisement
Sabbir-bin

increasing_number_serial_pyramid

Dec 6th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.   int i, j,n;
  5.   printf("Enter the number :- ");
  6.   scanf("\n%d",&n);
  7.     for (i=1; i<=n; i++)
  8.   {
  9.     for(j=1; j<=i; j++)
  10.     {
  11.    printf("%d",i);
  12.     }
  13.      printf("\n");
  14.   }
  15.   return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement