MULTIPLICATION TABLE (LOOP METHOD)

 MULTIPLICATION TABLE   

 (LOOP METHOD)


INPUT

#include<stdio.h>

int main()
{
    int a;
    printf("Enter the number you want the multiplication table of :-\n");
    scanf("%d",&a);
for (int i = 1i < 11i++)
{
    printf("%d X %d = %d\n "a,i,a*i);
}

    
    return 0;
}


OUTPUT

3 3 X 1 = 3 3 X 2 = 6 3 X 3 = 9 3 X 4 = 12 3 X 5 = 15 3 X 6 = 18 3 X 7 = 21 3 X 8 = 24 3 X 9 = 27 3 X 10 = 30








 

Comments