// ** Below is the code of mario pset1, its taking input of width multiple times and not executing step after input//
#include <cs50.h>
#include <stdio.h>
#include <math.h>
int main(void)
{
int input;
int i;
int j;
int k;
do
{
input = get_int("Width of Pyramid Please:\n");//taking input of width of pyramid
}
while(input>0 && input<9);
for(i=1; i<=input; i++)
{
for(j=1;j<=i; j++)
{
printf(" ");
}
for(k=1; k<=i; k++)
{
printf("*/n");
}
}
}
The program is not moving forward to print the tower and it's taking input multiple times irrespective of whatsoever the input it's even accepting char and floats.
Can anyone explain what's going on here and how to deal with it?