对正整数逆序打印,请问我这个代码哪里错了, 就是出不来逆序打印的结果!!


#include <stdio.h>
#include<stdlib.h>
 
int main()  
{  
   int a,b;
   a=0;
   printf("请输入一个正整数:");
   scanf("%d",&b);
   if (b>0)
   { while (b>0)
   {a++;
   b=b/10;
       /* code */
   }
   if (a>5)
   {printf("您输入的数字多于五位!");
       /* code */
   }else{printf("您输入的数字为%d位数\n",a); }
       /* code */
   }
   else{printf("您输入的格式有错误");}
int c;
while (b>0)
{c=b%10;
b=b/10;
printf("%d",c); 
} 
    system("pause");  
    return 0;  
}

你不得填到15行 /* code */那里吗???