#include <cs50.h>
#include <stdio.h>
int main(void)
{
int n, i;
do
{
printf("Heigh: ");
n = get_int();
}while(n<0 || n>23);
for (i=1; i<=n; i++)
{
for(int e=1, e<n-i, e++)
{
printf(" ");
}
for(int h=1, h<2+i, h++)
{
printf("#");
}
printf("\n");
}
}
^this is the code i wrote