I need help with this problem. I am to make a half-pyramid using hashes (#). I first must prompt the user for the half-pyramid's height, number must be between 1 and 23, if wrong number gets entered, then program should re-prompt for the same again.need to use 1 or more loops with help of printf. Must align the bottom-left corner of half pyramid with the left edge of terminal window.
Here is what I have so far: thanks for any assistance-not sure if this much is even right.
#include <stdio.h>
int main(void)
{
do
{
printf("height\n");
printf ("Enter a integer for height between 1 and 23"\n);
int i = GetInt();