Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

a program to print the multiplication table of a given number in c

int n, i;
    printf("Enter a number: ");
    scanf("%d", &n);
    printf("Multiplication table of %d:
 ", n);
    for (i = 1; i <= 10; i++){
        printf("%d x %d = %d
", n, i, n * i);
        }
    return 0;
 
PREVIOUS NEXT
Tagged: #program #print #multiplication #table #number
ADD COMMENT
Topic
Name
4+4 =