Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I dont understand how towrite code so that is outputs each asterisk per line. Ca

ID: 3609454 • Letter: I

Question

I dont understand how towrite code so that is outputs each asterisk per line. Can someonehelp me on this problem?
Assume that the int variables i , j and n have been declared, and n has been initialized. Writecode that causes a "triangle" of asterisks to be output to thescreen, i.e., n lines should be printed out, the firstconsisting of a single asterisk, the second consisting of twoasterisks, the third consisting of three, etc. The last line shouldconsist of n asterisks. Thus, for example, if n hasvalue 3, the output of your code should be (scroll down ifnecessary): * ** *** Thank You I dont understand how towrite code so that is outputs each asterisk per line. Can someonehelp me on this problem?
Assume that the int variables i , j and n have been declared, and n has been initialized. Writecode that causes a "triangle" of asterisks to be output to thescreen, i.e., n lines should be printed out, the firstconsisting of a single asterisk, the second consisting of twoasterisks, the third consisting of three, etc. The last line shouldconsist of n asterisks. Thus, for example, if n hasvalue 3, the output of your code should be (scroll down ifnecessary): * ** *** Thank You

Explanation / Answer

please rate - thanks #include int main() {int i,j,n; coutn; for(i=0;i