Advertisement
CreadPag

LOVE

Nov 24th, 2015
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void espacios (int x)
  5. {
  6. int i;
  7. for (i=0; i<x;i++)
  8. printf(" ");
  9. }
  10. void asterisco (int x)
  11. {
  12. int i;
  13. for (i=0;i<x;i++)
  14. printf("*");
  15. }
  16. int main()
  17. {
  18. espacios(3);
  19. asterisco(2);
  20. espacios(7);
  21. asterisco(2);
  22. printf("\n");
  23. espacios(2);
  24. asterisco(4);
  25. espacios(5);
  26. asterisco(4);
  27. printf("\n");
  28. espacios(1);
  29. asterisco(6);
  30. espacios(3);
  31. asterisco(6);
  32. printf("\n");
  33. espacios(1);
  34. asterisco(7);
  35. espacios(1);
  36. asterisco(8);
  37. printf("\n");
  38. asterisco(18);
  39. printf("\n");
  40. int i, j;
  41. for (i=16,j=1;i>-1; j ++, i-=2)
  42. {
  43. espacios(j);
  44. asterisco(i);
  45. printf("\n");
  46. }
  47. printf("\ \ \ \ \TE QUIERO---- Thanks CreadPag <3 \n");
  48.  
  49. return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement