I am really confused with mario half pyramid in pset1. I only need some help just give me a hint if I going right till now and what can I do for the #
#include <cs50.h>
#include <stdio.h>
int main(void)
{
printf("Height:");
int h ;
h=0 ;
do
{
h = get_int();
}
while ( h< 0 || h > 23);
int i;
i=0;
for (i=0;i<h;i++)
{
int s;
s=1;
for(s=1;s<h;s++)
{
printf(" ");
printf("##\n");
}
}
}
I know that there must be an equation here but I don't really know how to insert it. I tried a lot please give me some hints