#include <stdio.h>
int main(void)
{
int n;
int j = 1;
scanf("%d", &n);
while (10^j < n)
{
if ((n%(10^j))/10^(j-1) != 0){
printf("%d x %d = %d", (n%(10^j))/(10^(j-1)), 10^(j-1), ((n%(10^j))/((10^(j-1)))*(10^(j-1))));
}
else
continue;
printf("\n");
j++;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: