+ 7
I'm assuming you are looking for an outline, since you already have a rectangle. If so, you need an if statement in place of line 11. If either a or b is either 0 or 4, output the asterisk, otherwise output a space. Of course, you need to express it as a C++ expression. Give it a try, if you can't figure it out after 30 minutes of trying or you get it working, post to let me know.
5th Feb 2018, 9:48 PM
John Wells
John Wells - avatar