C语言编的#include#includemain(){int n,m,i,j,k=0; char s[80]; scanf("%s",s); n=strlen(s); for(i=0;i {j=n-i-1;m=1; while(j) {m=m*10; j--;} m=m*(s[i]-48); k=k+m;} printf("%d\n",k);}
scanf("%s",字符串名);printf("%d",字符串名);