有点改动了,呵呵,谢谢大家帮忙了!
#include<stdio.h>int main(void){long int n,c=0;printf("Enter n=");scanf("%ld",&n);do{c=c*10+n%10;n/=10;}while(n>0);n=c;do{ (c==n)?printf("%ld",c%10):printf("+%d",c%10); c/=10;}while(c>0);return 0;}