求三位数的逆序

例如    712

a     =    712/100=7

b     =    712%10=2

712%100=12

c     =    12/10=1

712/10=71

71%10=1

然后

b*100+c*10+a

 

为了避免700  被输出成007

所以不写成%d%d%d

posted @ 2020-01-20 11:40  Guanine-Ctosine  阅读(262)  评论(0)    收藏  举报