标签:华为入职练习 华为oj
#include <stdio.h> #include <stdlib.h> int main() { int n=0; while ( EOF != scanf("%d", &n) ) { int reverseNum =0; int temp = n; int count = 0; while (0 != temp) { reverseNum = reverseNum * 10 + temp%10; temp /= 10; count++; } printf("%d %d\n", count, reverseNum); } return 0; }
标签:华为入职练习 华为oj
原文地址:http://blog.csdn.net/xiaohanstu/article/details/42293677