C Programming Forum

Ask Question   UnAnswered
Home » Forum » C Programming       RSS Feeds

Help needed with Half Pyramid

  Asked By: Teresa    Date: Nov 14    Category: C Programming    Views: 1605

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)
printf ("Enter a integer for height between 1 and 23"\n);
int i = GetInt();



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Help needed with Half Pyramid Or get search suggestion and latest updates.