TheRasVa

Задача 2,8

Feb 14th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. // ConsoleApplication3.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8.  
  9. int main()
  10. {
  11.     int i, g, n;
  12.     i = 0;
  13.     g = 0;
  14.     cin >> n;
  15.     do
  16.     {
  17.         do
  18.         {
  19.             cout << "*";
  20.             g++;
  21.         } while (g < n);
  22.         g = 0;
  23.         i++;
  24.         cout << endl;
  25.     } while (i < n);
  26.     cout << endl;
  27.     system("PAUSE");
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment