Multiple table

#include<stdio.h>
main()
{
    int i,j,s;
    //create a table 1-10;
    for(i = 1; i <= 10; i++)
    {
        printf("\n--------------\n");
        //print number of table
        printf("\nTABLE OF %d",i);
        printf("\n--------------\n");
        for(j = 1; j <= 10; j++)
        {
            s=i*j;
            printf("\n%d X %d = %d",i,j,s);

        }
    }
}

    Leave a Reply

    Your email address will not be published.

    Need Help?