Hi I'm trying to get this design done here and I'd love some help finished result or possible steps trying to learn http://i.imgur.com/hJl48LS.jpg For the design I'm trying to make
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int i = 0, j = 0, NUM = 3;
for (i = -NUM; i <= NUM; i++)
{
for (j = -NUM; j <= NUM; j++)
{
if (abs(i) + abs(j) <= NUM)
{
cout << "*";
}
else { cout << " "; }
}
cout << endl;
}
return 0;
I ended up with this its the right shape by asterisks but is that the closest ill get?