Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include<iostream>
- using namespace std;
- int main()
- {
- int N;
- cin >> N;
- int s = 1;
- int i = 1;
- while (s <= N) {
- i = 1;
- while (i <= N) {
- cout << '*';
- i = i + 1;
- }
- ++s;
- cout << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement