I have been out of class for a few days due to being sick. I have caught up for the most part, but am having problems.
Here is the example in class:
Code
#include<iostream>
using namespace std;
int main()
{
for(int vert = 0; vert < 10; vert++)
{
for(int horz = 0; horz < 10; horz++)
{
cout << "*";
}
cout << endl;
}
cin.get();
return 0;
}
It comes out like this:
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********
a 10x10 asterisk box.
I need to write a program for this:
.....*
....**
...***
..****
.*****
..****
...***
....**
.....*
It must have the option "Enter a number to be used".
I can't figure it out for the life of me. A diamond shape using the * as the marker. Ignore the periods
Thanks!!!
This post was edited by Coronaking on Feb 4 2015 08:33am