#include <stdio.h>
int main() {
int a=0,b=0,i;
int x[1000000];
scanf("%d",&a);
for(i=10;i<a;i*=10)
{
b++;
}
i=i/10;
for(int j=0;j<b;j++)
{
x[j]=a/i;
i=i/10;
}
for(int j=1;j<b;j++)
{
x[j]=x[j]-x[j-1]*10;
printf("%d ",x[j]);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: