Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - A simple program inputs a three-digit n and outputs it in reverse.
A simple program inputs a three-digit n and outputs it in reverse.
Scanf("%d%d%d\n ",& i, & ampb & amp;; c); `````, you'd better change the `` in the entry, otherwise it's not easy to enter ` scanf("%d, %d,% d \ n ",&; First, & ampb & amp;; c);

You can add it when entering, such as' 12,12, 12'.

Attached is the compiler's problem that both input methods are successful?

Read the wrong topic ``.

b = a/ 100;

c =(a % 100)/ 10;

d = a % 10; ```

Take out the hundred digits and the ten digits respectively, such as 987/ 100==9.

(987% 100)/ 10=8

987% 10==7``

And then output.