19.零起点学算法14——三位数反转

#include<stdio.h>
int main()
{
    int  s,a,b,c;
    while(scanf("%d",&s)!=EOF)
    {
        a=s/100;
        b=s%100/10;
        c=s%100%10;
        printf("%d%d%d",c,b,a);
    }
    return 0;
}

 

posted @ 2018-09-27 23:19  Estwind  阅读(547)  评论(0编辑  收藏  举报