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