PROGRAM TO PRINT STAR PATTERN (Right Angled Triangle) IN C++ Using Iostream


First:

#include <iostream>
#include <conio.h>
using namespace std;
int main(){
int i,j;
for(i=1; i<=5; i++){
cout << "\n";
for(j=1; j<=i; j++){
cout << "*";}}
getch();
return 0;
}

Output:



Comments