Write a program that uses for statements to print the following separately, one
ID: 3617188 • Letter: W
Question
Write a program that uses for statements to print the following separately,
one below the other. Use for loops to generate the patterns. All asterisks
should be printed by a single statement of the form
( cout << '*'; and cout << " " ).
*
**
***
****
*****
******
*******
********
*********
**********
**********
*********
********
*******
******
*****
****
***
**
*
**********
*********
********
*******
******
*****
****
***
**
*
*
**
***
****
*****
******
*******
********
*********
**********
Combine your code with the question above to print the triangles
side by side as shown below:
* ********** ********** *
** ********* ********* **
*** ******** ******** ***
**** ******* ******* ****
***** ****** ****** *****
****** ***** ***** ******
******* **** **** *******
******** *** *** ********
********* ** ** *********
********** * * **********
Explanation / Answer
please rate - thanks these are very different--they can't be combined #include using namespace std; int main() {int i,j; for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.