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

Commit 5b8a1e0

Browse files
committed
challenge-19 file
Signed-off-by: TRIDIB BAG <tridibbag56@gmail.com>
1 parent f26fba9 commit 5b8a1e0

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

contributors/Mrjoy832/code.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.

contributors/Mrjoy832/pattern.cpp

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

0 commit comments

Comments
 (0)