PROGRAM TO GENERATE MULTIPLICATION TABLE UP TO 10

 #include <stdio.h>

int main() {

    int n, i;

    printf("Enter a number to get its multiplication table:");

    scanf("%d", &n);

    for (i = 1; i <= 10; ++i) {

        printf("%d * %d = %d \n", n, i, n * i);

    }

    getch();

}


No comments:

Post a Comment