I understand what you’re asking and I think the simplest way to illustrate this is as follows:
int main(){
int num_lines = 0, counter = 0;
Cout << "Triangle generator" << Endl;
Cout << "Type the number of lines: " << Endl;
Cin >> in rows;
for (counter = 1; counter <= num_lines; counter++){
cout <<"*"<< endl;
/*e a cada vez que a leitura do "for" for feita, a resposta adicionar um "*" ao lado do "*" anterior*/}}
Correct me if I’m wrong. If this is the case, I am also researching a solution, after all, my first contact with programming was with python and, as it is not a strongly typed language, you can multiply char prints (something that with C++ is not possible, apparently).
Research and Gambiarra time, bora pro Google.
Post the code you’ve already made.
– rubStackOverflow