My do while loop for mario.c is not working as expected. This my code:
int height = 0;
do
{
// make half pyramid
}
while (height < 0 || height > 23)
return height;
When I enter a positive integer > 23, it prints the half pyramid and then re-prompts for height. It works well for non integers, 0, and negatives though. WHATS THE PROBLEM