C Program to Generate Multiplication Table

C Program to Generate Multiplication Table

Generating multiplication table isn’t complex. What will take your mind is printing in the given format. Hence, not wasting time let us get on to the logic of this program.

  1. Input a number from user whose multiplication table is to be generated. Store it in some variable say num.
  2. Run a loop from 1 to 10, incrementin 1 on each repetition. The loop structure should look like for(i=1; i<=10; i++).
  3. Inside the loop generate multiplication table using num * i and print in given format. The sequence of printing multiplication table is n * i = (n * i)

Table in c language

If you want to see it on compiler then plz click here for table in c
your can see this program in detai
In this we use for loop for printing table in c language

example is given below

void main()
long n,i,ans=1;
printf(“Enter no for table”);