#include<iostream>
using namespace std;
int main()
{
int n;
char c;
cout<<"enter the size of the triangle: ";
cin>>n;
cout<<"choose char: ";
cin>>c;
for(int i=1; i<n; i++) //counting lines
{
for(int j=1; j<i; j++) //printing 'for'
{
cout<<c;
}
cout<<endl; //break line
}
return 0;
}