-->

Facebook

Jasper Roberts - Blog

Tuesday, September 30, 2014

Write a C Program to display multiplication table.

// Write a C Program to display multiplication table.

#include<conio.h>
#include<stdio.h>

void main()
{
     int n,multi;
     int i,j;

     clrscr();


     printf("enter the end:");
     scanf("%d",&j);
      
     printf("enter the number:");
     scanf("%d",&n);

     for(i=1;i<=j;i++)
     {
          multi = n * i;
          printf("\n %d * %d = %d",n,i,multi);
     }
     getch();
}

OUTPUT:

multiplication table in c language
multiplicationtable.c

          DOWNLOAD