Skip to content

Commit 3c47c34

Browse files
authored
Right angled triangle star pattern.
Committed successfully , merge it.
1 parent e9276ea commit 3c47c34

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

right_triangle_star_pattern.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include<iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
int i, j, rows;
7+
8+
cout << "Enter Right Triangle Star Pattern Row = ";
9+
cin >> rows;
10+
11+
cout << "Right Angled Triangle Star Pattern\n";
12+
13+
for(i = 1; i <= rows; i++)
14+
{
15+
for(j = 1; j <= i; j++)
16+
{
17+
cout << "* ";
18+
}
19+
cout << "\n";
20+
}
21+
return 0;
22+
}

0 commit comments

Comments
 (0)