Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int main()
- {
- int n;
- printf("\nEnter Number of rows : ");
- scanf("%d",&n);
- printf("\n\n");
- for ( int i=0 ; i<n ; i++ )
- {
- for ( int j=0 ; j<i+1 ; j++ )
- printf("*");
- printf("\n");
- }
- }
Add Comment
Please, Sign In to add comment