#include int main(){ int x; int a[20]; scanf("%d",&x); int i; for(i=0;x>=10;i++) { a[i] = x%10; x=x/10; } a[i] = x; x = 0; while(i) { x = x+a[i]; i--; } x = x+a[0]; printf("%d\n",x); return 0;}整数的各位数字是倒序放在数组的