I'm struggleing with syntax I think. I keep getting errors with expected expressions/identifiers.
I've tried to mimic code I've seen, but I'm not getting it...I'm just trying to set my input and it's getting super frustrating.
The start of my code gives two errors
CODE:
//program to make pyramids of specified heights
#include <stdio.h>
#include <cs50.h>
int main(void)
//user input and value check
{
do
int h = get_int("Height of Pyramid: ");
}
while (h <= 0 || h < 24)
ERRORS:
mariotest.c:12:5: error: expected expression
int h = get_int("Height of Pyramid: ");
^
mariotest.c:14:1: error: expected identifier or '('
while (h <= 0 || h < 24)