F Program to generate right triangle Star Pattern in CPP. | CodeTheta

Program to generate right triangle Star Pattern in CPP.

June 03, 2019

 Code :
/*
* Author: Soumyodeep Mondal
*/
#include<iostream>
#include<conio.h>
using namespace std;
int main(){
    int i,j;
    for(i=1; i<=5; i++) {
        for(j=1; j<=i; j++) {
            cout<<"*";
        }
        cout<<"\n";
    }
}


Output :
*
**
***
****
*****

IDE Used To Test This Code : Dev C++.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment