#include <cs50.h>
#include <stdio.h>
int main(void)
{
int x;
do
{
x = get_int("Please input an integer that is between 1 and 23: ");
}
while ((x<1) || (x>23)); //don't foget the ";" in the end
for (int a=0; a<x; a++) //use nested loop for this problem
{
for (int i=0; i<a; i++) // The common for loop starts from "0" instead of "1", so don't write like this (int i=1; i<=a; i++)
{
printf("#");
}
printf("\n"); //for return it's "\n" not "/n"
}
}