#include <stdio.h>

int main()
{
    int Number, Soultion;
    int Ten = 1;
    scanf("%d", &Number);

    while (Number > 0)
    {
        Soultion = Number % 10;
        Number /= 10;
        Ten *= 10;

        if (Soultion != 0)
            printf("%d * %d = %d\n", Soultion, Ten, Soultion * Ten);
    }

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: