Seeking three-digit reverse

For example 712

a     =    712/100=7

b     =    712%10=2

712%100=12

c     =    12/10=1

or

712/10=71

71%10=1

then

b*100+c*10+a

 

To avoid output 700 to 007

It is not write% d% d% d

Guess you like

Origin www.cnblogs.com/hahalovehenhen/p/12217311.html