From 998f07d3444f7fe37280cf0b9f884be268391265 Mon Sep 17 00:00:00 2001 From: Mrunaal <111456658+Mrugaa@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:04:56 +0530 Subject: [PATCH] Adding pattern 1 --- Pattern1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Pattern1 diff --git a/Pattern1 b/Pattern1 new file mode 100644 index 0000000..03ee59b --- /dev/null +++ b/Pattern1 @@ -0,0 +1,20 @@ +#include +using namespace std; + +int main() +{ + int rows; + + cout << "Enter number of rows: "; + cin >> rows; + + for(int i = 1; i <= rows; ++i) + { + for(int j = 1; j <= i; ++j) + { + cout << "* "; + } + cout << "\n"; + } + return 0; +}