Hey Everyone, in class we are learning about for loops, which are very easy. However the project the teacher gave us is very difficult. Here is the assignment:
Write a program that prints the following patterns seperately one below the other. Use for loops to generate the patterns. All asterisks(*) should be printed by a single statement of the form "cout << '*';". Hint: The last two patterns require that each line begin with an appropriate number of blanks.
(A) (B) (C) (D) * ********** ********** * ** ********* ********* ** *** ******** ******** *** **** ******* ******* **** ***** ****** ****** ***** ****** ***** ***** ****** ******* **** **** ******* ******** *** *** ******** ********* ** ** ********* ********** * * **********
I figured out how to make each image separately. But I am confused as to how I am supposed to make them all with just ONE statement of "*".
BTW, this program can only use the heading code of #include<iostream>