Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h" // DO NOT PLACE ANY INCLUDES ABOVE HERE
- #include <iostream>
- #include <string>
- #include <cstdlib>
- #include <iomanip>
- using namespace std;
- int main()
- {
- int a = 0;
- char star = '*';
- while (a < 3) {
- for (int chart = 0; chart < 9; ++chart) {
- cout << star;
- a = a + 1;
- if (a == 3 || a == 6 || a == 9) {
- cout << "\n";
- }
- }
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement