#include <stdio.h>


int main()

{

    static  int(*funs[])() { main, []{ return 0; } };

    static  int i;


    const   int c = 4;

    const   int r = 9;


    int z   = i / ( c * r );

    int z_  = i % ( c * r );


    int t   = ( z * c + c ) / r;

    int c_  = c * ( 1 - t ) + ( r - z * c ) * t;


    int x_  = z_ % c_;

    int x   = x_ + z * c + 1;

    int y   = z_ / c_ + 1;


    int n   = ( x_ + 1 ) / c_ * 10;

    int p   = ( z_ + 1 ) / ( c_ * r ) * 10;


    printf( "%u x %u = %2u    %c%c", x, y, x * y, p, n );


    return  funs[ ++i / ( r * r ) ]();

}


약을 빨면 됩니다.