Advertisement
ZhilinskiyG

Task 2_08

Feb 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int N;
  7.     cin >> N;
  8.     int s = 1;
  9.     int i = 1;
  10.     while (s <= N) {
  11.         i = 1;
  12.         while (i <= N) {
  13.             cout << '*';
  14.             i = i + 1;
  15.         }
  16.         ++s;
  17.         cout << "\n";
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement