#include <stdio.h>

int main()
{
    int a, b;
    int c = 1;

    scanf("%d %d", &a, &b);

    if (a >= 2 || a <= 9 || b >= 2 || b <= 9)
    {
        for (c = 1; c <= 9; c++)
        {
            for (int i = a; i >= b; i--)
            {
                
                printf("%d * %d = %d", i, c, i * c);
                if (i != b)
                    printf("   ");
            }
            printf("\n");
        }
    }
    

    return 0;
}

Embed on website

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