从高位到低位分解输出正整数,参考代码如下:#include<stdio.h>int main(){long n;int a[5],m=0,i;scanf("%ld",&n);if(n<=0||n>99999)return 0;while(n!=0){a[m++]=n%10;n/=10;}for(i=0;i<m;++i)printf("%d ",a[m-1-i]);return 0;} 追答