HOW TO: Create A Multiplication Tables In C Programming



SOURCE CODE!!!

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i, timesTable, n, total;

    printf("Enter number of times table: ");
    scanf("%d", &n);

    for(i=1; i<=n; i++)
    {
        printf("\nTimes Table %d", i);

        for(timesTable=1; timesTable<=12; timesTable++)
        {
            total=timesTable*i;
            printf("\n%dx%d=%d", timesTable, i, total);
        }
        printf("\n");
    }
}




Feel free to visit my YouTube channel: Four For Fighting

Comments

Popular posts from this blog