So I figured everything out except why when I configure the program it doesnt print anything. No hashes no spaces!
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int height, rows, spaces, hashes;
do
{
printf("Mario's Prymid Height: ");
height = GetInt();
}
while (height <= 0 || height >= 23);
for (rows = 0; height <= rows; rows++)
{
for (spaces = height - 1; spaces == 0; spaces-- )
{
printf (" ");
}
for (hashes = rows + 2; hashes <= height; hashes++)
{
printf ("# \n");
}
}
return 0;
}