题目:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。1 .程序分析:学会分解出每一位数,如下解释:(这里是一种简单的算法).程序源代码:main()long a,b,c,d,e,x;scanf(H%ldn,&x);a=x/10000;/*分解出万位*/b=x%10000/1000 ;/* 分解出千位*/c=x%1000/100;/* 分解出百位*/d=x%100/10 ;/*分解出十位*/e=x%10;/*分解出个位*/if (a!=0) printf(Hthere are 5, %ld %ld %ld %ld %ldnn,e,d,cJb,a);else if (b!=0) printf(Hthere are 4, %ld %ld %ld %ldn,e,d,cJb);else if (c!=0) printf(n there are 3,%ld %ld %ldnn,e,d,c);else if (d!=0) printf(Hthere are 2, %ld %ldnn,e5d);else if (e!=0) printf(M there are 1,%ldne);