2.(C) Write a program to print multification table of any given number

 #include <stdio.h>

// write a program to print multification table of a given number n.29jan,2022.
int main()
{
    int i, n;
    printf("Enter the value of i\n");
    scanf("%d", &i);

    printf("**** The multification table of the given number**** \n\n ");
    for (n = 1; n <= 10; n++)
    {
        printf("%d*%d=%d\n", i, n, i * n);
    }
    return 0;
}

Comments