current position:Home>C language novice village, high adoption rate

C language novice village, high adoption rate

2022-02-03 00:01:37 CSDN Q & A

Want to ask Why can't we solve it directly

img

img

img




Refer to the answer 1:

scanf Add the following sentence getchar try

        scanf("%c-%c",&a,&b);        getchar();



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030001354722.html

Random recommended