Advertisement
tahsiniftekhar

Triangle Pattern 2

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