Hello,
I wrote a program to draw a diamond in C++. I have a problem with the first and second rows. the first and second asterisk isn't aligned.
I upload my output and desired output.
Target: https://imgur.com/M4fiPg5
I hate to have to tell you, but if you look very closely your TARGET isn't strictly a diamond when there are even numbers of stars in most rows ... because 1 isn't even.
If you want your designed line-up, then, for an even number, you will have to output something slightly different in the upper half when i=0 and in the lower half when i=num.