Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int loop1, loop2, rows=5;
- for( loop1 = 0; loop1 < rows; loop1++ )
- {
- printf( "%*c", rows - loop1, ' ' );
- for ( loop2 = 0; loop2 <= loop1; loop2++ )
- printf( " *" );
- putchar( '\n' );
- }
- printf( "%*c*\n", rows + 1, ' ' );
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement