I'm trying to simplify the mario exercise by making my code print the number of hashtags the user inputs for the height without the spaces. Like this:
height 4:
# # # ##include <stdio.h>
#include <cs50.h>
int main(void)
{
int height;
do {
height = GetInt();
}
while (height > 23);
int row;
row == height + 1
int i;
int hashtag;
int enter;
for ( i = 0 ; i < height ; i++ ) {
hashtag == printf("#");
hashtag = hashtag * row;
enter == printf("\n");
enter = 1;
i == hashtag + enter;
printf("%i%i", hashtag, enter);
}
}
The compiler says there's no rule to make the target mario, and I don't know how to fix it.