#include using namespace std;int main (){int a; int i = 0;
//表示a的位数int total = 0;
//加和cin >> a;int c = a;while (c != 0)
//利用求值截取i 现在表示 a 的位数{
c = c / 10;
i++;}int j = i;while (j != 0) {
total = total + a / pow (10, j - 1);
a = a - (total * pow (10, j...