WHAT'S NEW?
Loading...

C Program to print multiplication table of a number


/*to print multiplication table of any given integer number*/
#include<stdio.h>

void main() {
    int a, i, pro;
    printf("\nEnter the number: ");
    scanf("%d", &a);
    for (i = 1; i <= 10; i++) {
        pro = a * i;
        printf("\n%3d X %-3d= %3d", a, i, pro);
    }
}

0 comments:

Post a Comment