[Solved] C – for loop only execute ones after scanf [closed]


The answer variable is defined as character so you should change the format string of the scanf function:

scanf("%c",&answer);

9

solved C – for loop only execute ones after scanf [closed]