Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 03e3d88

Browse files
committed
challenge-19 file
Signed-off-by: TRIDIB BAG <tridibbag56@gmail.com>
1 parent 5155849 commit 03e3d88

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

contributors/Mrjoy832/pattern.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
*/
44
#include <iostream>
55

6-
int main() {
6+
int main()
7+
{
78
int rows;
89

910
std::cout << "Enter number of rows: ";
1011
std::cin >> rows;
1112

12-
for (int i = rows; i >= 1; --i) {
13-
for (int j = 1; j <= i; ++j) {
14-
std::cout << j << " ";
13+
for (int i = rows; i >= 1; --i)
14+
{
15+
for (int j = 1; j <= i; ++j)
16+
{
17+
std::cout << j << " ";
1518
}
1619
std::cout << std::endl;
1720
}
18-
21+
1922
return 0;
20-
}
23+
}

0 commit comments

Comments
 (0)