#include<stdio.h> #include<stdlib.h> int main(){ int n = 0; scanf("%d", &n); int result = 0; if(n < 0){ n = -n; printf("-"); } while(1) { result = n % 10; printf("%d", result); n = n / 10; if(n == 0) { break; } } }
标签:标价,体系,数字,int,游客,result From: https://www.cnblogs.com/lachesism/p/16708901.html