C Program to Display Multiplication Table


Aim :- C Program to Display Multiplication Table.


C Program :


#include<stdio.h>
#include<conio.h>
void main()
{
 int n, i;
 clrscr();
 printf("Enter a number : ");
 scanf("%d",&n);
 for(i=1;i<=10;i++)
 {
  printf("%d * %d = %d\n", n, i, n*i);
 }
 getch();
}  

Output : 





Post a Comment

0 Comments