My while loop is messed up too, trying to figure out how I can set it up logically and not getting anywhere
Printable View
My while loop is messed up too, trying to figure out how I can set it up logically and not getting anywhere
Why not use the intuitive for loop as I showed you? When you have a CERTAIN number you need to stop at, a for loop is just the clearer choice. When you have an unknown number of loops to make, then a while loop seems quite natural, and a better choice.
This line wont do what you think:Backslash is the escape character, which is used for things such as \n to do a newline etc.Code:printf("//| |\\ |\n");
This means the above gives you one backslash, not two. You'll want to use this to get two backslashes:Code:printf("//| |\\\\ |\n");