to print a diamond you will need a main loop from 0 to size-1:

for (int i=0; i<size; i++)

then you will need two loops inside, one to print spaces, and another loop to print the diamond

Looking for the diamond below, size = 9

So, you will need to deduce 2 equations:

1) calculate the white spaces, based on i

2) calculate the diamond marks, based on i

in the example first space is 4 and body is 1

then space decrements and body increments

when i = (size-1)/2, then body = size, and space = 0

I would use something like:

body = abs(i-(size-1)/2+1)

space = abs((size-1)/2 - i)

to write the space or body, would be simpler to print char by char, like this:

for (j=0; j<body; j++)

cout << '#';

well, hope all this information will be enough to help you complete your homework

```
#
###
#####
#######
#########
#######
#####
###
#
```