ritesh1340

Pattern

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