I've almost finished my code for this, but for some reason the output is like this:
**********
* *
**********
* *
**********
* *
**********
and I need the inside to be completely hollow. I've been playing around with the code trying to fix it but only made it worse. Could I get some help?
Did you use the code I posted earlier, or the one shown now? I removed a bracket you had at the end of line 7 in your code. I hadn't noticed it before posting my old code, so I re-posted a corrected version. With the bracket, lines 8 AND 9 of your code is couted, giving you those results you posted. Removing it, will only cout line 8 ( your code ) or line 9 ( my code ) as many times as the a loop shows, THEN couts the bottom line. Try using the code I have posted now, and see if you get the correct output.