#include<stdio.h>void main() {char s[12];int i,L;gets(s);L=strlen(s); // 几位数printf("L=%d\n",L);for (i=0;i<L;i++) //从高位到低位{printf("%d ",s[i]-'0');}printf("\n");for (i=L-1;i>=0;i--) //从低位到高位{printf("%d ",s[i]-'0');}printf("\n");exit(0);}
void disData(int dat){int i = 0, n = 0;char buf[10];while(dat > 0){ buf[n++] = dat % 10; dat /= 10;}printf("%d\n", n);//再倒序打印for(i = 0; i < n; i++){ printf("%d", buf[n - 1 - i]);}}