Write a program of table in C language - Program of table in C - C language mein table ka program kese bnaye

Program of the table in C Language 

The program of the table in C language is very easy. The below code takes an integer number from the user and generates the multiplication table of the number 

#include <stdio.h>

int main()

{

  int n, i; // Variable for the table number and loop

  printf("Enter the number: ");

  scanf("%d", &n);

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

    {

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

    }

  return 0;

}



The code is performed on the CODEBLOCK IDE which is shown in the set image


and this is the result of the code.

Comments