For Loop
We have to write the following program...
Use For Loops to create a program that prints
out a structure that looks like this:
*
**
***
****
*****
****
***
**
*
So far all I have is this code...
# include <iostream>
using namespace std;
void main ()
{
int star;
for (int star = 1; star <=5; star = star + 1)
cout << " * " << endl;
}
Not sure where to go from here..
Thanks
No comments:
Post a Comment