#includevoidmain(){longintb,c,d,e,x;printf("请输入任意一个正整数\n");scanf("%ld",&x);b=x%10000/1000;/*分解出千位*/c=x%1000/100;/*分解出百位*/d=x%100/10;/*分解出十位*/e=x%10;/*分解出个位*/printf("四位数的立方和为:%ld\n",(b*b*b)+(c*c*c)+(d*d*d)+(e*e*e));}