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

Commit 115a74f

Browse files
committed
challenge-19 file
Signed-off-by: TRIDIB BAG <tridibbag56@gmail.com>
1 parent 158b6a7 commit 115a74f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

contributors/Mrjoy832/code.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <iostream>
2+
3+
int main() {
4+
int rows;
5+
6+
std::cout << "Enter number of rows: ";
7+
std::cin >> rows;
8+
9+
for (int i = rows; i >= 1; --i) {
10+
for (int j = 1; j <= i; ++j) {
11+
std::cout << j << " ";
12+
}
13+
std::cout << std::endl;
14+
}
15+
16+
return 0;
17+
}

0 commit comments

Comments
 (0)