Skip to content

Commit

Permalink
Right angled triangle star pattern.
Browse files Browse the repository at this point in the history
Committed successfully , merge it.
  • Loading branch information
aryansraj007 authored Oct 20, 2022
1 parent e9276ea commit 3c47c34
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions right_triangle_star_pattern.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include<iostream>
using namespace std;

int main()
{
int i, j, rows;

cout << "Enter Right Triangle Star Pattern Row = ";
cin >> rows;

cout << "Right Angled Triangle Star Pattern\n";

for(i = 1; i <= rows; i++)
{
for(j = 1; j <= i; j++)
{
cout << "* ";
}
cout << "\n";
}
return 0;
}

0 comments on commit 3c47c34

Please sign in to comment.