Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include "stdafx.h" // DO NOT PLACE ANY INCLUDES ABOVE HERE
  2. #include <iostream>
  3. #include <string>
  4. #include <cstdlib>
  5. #include <iomanip>
  6.  
  7. using namespace std;
  8.  
  9.  
  10. int main()
  11. {
  12. int a = 0;
  13. char star = '*';
  14.  
  15. while (a < 3) {
  16. for (int chart = 0; chart < 9; ++chart) {
  17. cout << star;
  18. a = a + 1;
  19. if (a == 3 || a == 6 || a == 9) {
  20. cout << "\n";
  21. }
  22.  
  23. }
  24. }
  25.  
  26.  
  27.  
  28. system("PAUSE");
  29.  
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement