Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language inputs an unsigned short integer, and then outputs decimals according to the codes input by users. ...
C language inputs an unsigned short integer, and then outputs decimals according to the codes input by users. ...
There is nothing wrong with your program except this sentence scanf ("%d,% c ",&; x & amp; c); When you type, you should look like this:

10,O

15,X

Remember to have commas, because there is a comma in "%d, %c" of scanf.