C语言题解 | #数字颠倒#

数字颠倒

http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe

#include <stdio.h>
int main(void)
{
    int input,num;
     while(~scanf("%d",&input))
     {
        if(input == 0)
            printf("%c",'0');
        while(input != 0)
        {
            printf("%c",input%10 + 48);
            input /= 10;
        }
     }
    
}

全部评论

相关推荐

07-19 13:28
长沙学院 Java
鸿哥鸿哥:学院(一本),感觉在脱ku子放屁,学院结尾的除了那几家出名的,一律按二本处理
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务