DISPLAY MULTIPLICATION TABLE OF A GIVEN NUMBER

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

0 comments: (+add yours?)

Post a Comment