Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. void rysuj()
  2. {
  3. int x, i, j;
  4. for (i = 10; i >= 1; i--)
  5. {
  6.  
  7. for (j = 10; j >= 1 - i; j--)
  8. {
  9. cout << "";
  10. }
  11.  
  12. cout << "*";
  13.  
  14. for (x = 1; x < i ; x++)
  15. {
  16.  
  17. cout << " ";
  18.  
  19. }
  20. cout << "*";
  21. cout << "\n";
  22. }
  23.  
  24.  
  25.  
  26.  
  27. for (i = 1; i <= 10; i++)
  28. {
  29.  
  30. for (j = 1; j <= 10 - i; j++)
  31. {
  32. cout << " ";
  33. }
  34. cout << "*";
  35. for (x = 1; x < i ; x++)
  36. {
  37.  
  38. cout << " ";
  39.  
  40. }
  41. cout << "*";
  42. cout << "\n";
  43. }
  44.  
  45.  
  46.  
  47.  
  48.  
  49. _getch();
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement