#include #include int main(void) { // prompt user for pyramid's height int height; do { height = get_int("Height: "); } while (height < 1 || height > 8); // iterate over pyramid's rows for (int i = 0; i < height; i++) { // Print spaces for (int j = 0; j < i; j++) { printf(" "); } // Print Hashes for (int j = 0; j < i; j++) { printf("#"); } // print newline printf("\n"); } }