Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int i, g, n;
- i = 0;
- g = 0;
- cin >> n;
- do
- {
- do
- {
- cout << "*";
- g++;
- } while (g < n);
- g = 0;
- i++;
- cout << endl;
- } while (i < n);
- cout << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment