Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void espacios (int x)
- {
- int i;
- for (i=0; i<x;i++)
- printf(" ");
- }
- void asterisco (int x)
- {
- int i;
- for (i=0;i<x;i++)
- printf("*");
- }
- int main()
- {
- espacios(3);
- asterisco(2);
- espacios(7);
- asterisco(2);
- printf("\n");
- espacios(2);
- asterisco(4);
- espacios(5);
- asterisco(4);
- printf("\n");
- espacios(1);
- asterisco(6);
- espacios(3);
- asterisco(6);
- printf("\n");
- espacios(1);
- asterisco(7);
- espacios(1);
- asterisco(8);
- printf("\n");
- asterisco(18);
- printf("\n");
- int i, j;
- for (i=16,j=1;i>-1; j ++, i-=2)
- {
- espacios(j);
- asterisco(i);
- printf("\n");
- }
- printf("\ \ \ \ \TE QUIERO---- Thanks CreadPag <3 \n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement