diff --git a/right_triangle_star_pattern.cpp b/right_triangle_star_pattern.cpp new file mode 100644 index 0000000..6f6dbcd --- /dev/null +++ b/right_triangle_star_pattern.cpp @@ -0,0 +1,22 @@ +#include +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; +}