Joke Collection Website - Public benefit messages - Why there is no way to enter the char type in C language, and the program runs to printf ("Please enter the charging type:"); it's over

Why there is no way to enter the char type in C language, and the program runs to printf ("Please enter the charging type:"); it's over

There is a comma in scanf, which is difficult to match.

Scanf twice &; Type, you can use printf("%d ",type) to debug and see what kind of ASCII code it is, probably a carriage return code.