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; } } }