So I've been working on this code to make a bordered plus pattern with just using nested loops and conditional statements, and I cannot figure out how to get this right. I just started learning how to code.
That code seems pretty good for making a diagonal cross.
To make a plus shape is similar, if not a little easier. The border is the same, the inner feature will make use of rows == size/2 for the horizontal, and cols == size/2 for the vertical. Then just add the extra check for leaving the blank between border and pattern.