C Program to Display Multiplication Table of Entered Numbers

C Program to Display Multiplication Table of Entered Numbers , Write a program to display the multiplication table of given number entered by the user.

Write a program to display the multiplication table of given number entered by the user.

Write a c program to take input a number from user and display the multiplication table

C Code


#include <stdio.h>
#include <conio.h>
#include <math.h>
void main()
{

  int number, i;

  printf("Enter number : ");
  scanf("%d",&number);

  for(i = 1; i<=10; i++)
    printf("\n %d X %d = %d", number, i, number*i);

  getch();
}

Output

Multiplication Table of Entered Numbers


More experiment with multiplication table on c programming... 

if we change the length of i up to 20 than that will print for 20 times, i.e 
for(i = 1; i<=20; i++) printf("..............................................");

C Code


#include <stdio.h>
#include <conio.h>
#include <math.h>
void main()
{

  int number, i;

  printf("Enter number : ");
  scanf("%d",&number);

  for(i = 1; i<=20; i++)
    printf("\n %d X %d = %d", number, i, number*i);

  getch();
}

Output

multiplication table

You May Also Like...

Socialize with Us