#include using namespace std; int main() { /* Printing a triangle. * We get the number of rows. We need 2 loops * The outer loop prints one line of the triangle per iteration. * Each line has line number number of star symbols. * Inner loop is used to print one star per iteration. */ int rows; cout<<"Enter the number of rows: "; cin>>rows; for(int i=0;i