[ad_1]
The answer variable is defined as character so you should change the format string of the scanf function:
scanf("%c",&answer);
9
[ad_2]
solved C – for loop only execute ones after scanf [closed]
[ad_1]
The answer variable is defined as character so you should change the format string of the scanf function:
scanf("%c",&answer);
9
[ad_2]
solved C – for loop only execute ones after scanf [closed]