I am having issues tackling the corner cases for Mario (e.g. height < 0 or height > 23). I'm assuming you prompt the user to keep entering an integer in a while loop until he/she has entered an integer within the bounds defined. However, I keep getting an infinite loop in my code as shown below:
printf("Please enter the half-pyramid's height:\n");
do
{
printf("Height: \n");
int height = GetInt();
}
while (height < 0 || height > 23);