Skip to content

Commit c30a805

Browse files
committed
Square pattern
1 parent e0917c7 commit c30a805

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Patterns/SquarePattern.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
7+
int n = 4;
8+
9+
for (int i = 1; i <= n; i++)
10+
{
11+
for (int j = 1; j <= n; j++)
12+
{
13+
cout << j << " ";
14+
}
15+
cout << endl;
16+
}
17+
18+
return 0;
19+
}

Patterns/SquarePattern.exe

43.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)