001、
#include <stdio.h> int main(void) { int i; int result = 0; printf("i = "); scanf("%d", &i); while(i > 0) { result = result * 10 + i % 10; i /= 10; } printf("result = %d\n", result); return 0; }
标签:10,正整数,语言,int,result,printf,逆转 From: https://www.cnblogs.com/liujiaxin2018/p/16584707.html