#include void main() { int i,n,max,r,j; int a[20]; printf("Enter the number:"); scanf("%d",&n); i=0; while(n>0) { r=n%10; a[i]=r; i++; n=n/10; } while(i>=0) {j=i-1; while(j>=0) { printf("\t%d",a[j]); j--; } printf("\n"); i--; } }