So I understand the bases of the project, what I'm suppose to do etc, but when I prompt the user I get a bug, it also loops forever when I enter a negative integer is that normal? The do and while loop is as far as I got, for the the part where you have to make a for loop for each of the ints (height, spaces, hashes, etc) I get confused. I know that the spaces is one less than the number the user inputs and the hashes start at two and add one. I have no idea how to translate this to code! I seen some peoples work, but I want to understand each process I take to ensure that come later psets I have grasped an understanding of the basic concepts. I have also reviewed my notes and re-watched the lecture. I have also watched all the shorts and read the notes at least four times.
Here's my code:
#include <cs50.h>
#include <stdio.h>
int main(void)
{
printf("Mario's Pymid Height: ");
int height = get_int();
do
{
} while (height <= 0 || height >= 23);
}