Write a console application that uses for-loops to display the following pattern
ID: 3646195 • Letter: W
Question
Write a console application that uses for-loops to display the following patterns 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 "'*"; which causes the asterisks to print side by side. A statement of the form endl or " " can be used to move to the next line. A statement of the form cout << " "; can be used to display a space for the last two patterns. There should be no other output statements in the application.. (Hint: The last two patterns require that each line begins with an appropriate number of blank spaces.)
Explanation / Answer
#include 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.