Program to print table of a given number


Program to print table of a given number



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

void main()
{

int n;
int i;
int mul=0;

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

for(i=1;i<=10;i++)
{
mul=n*i;

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


getch();
}


Output :

0 comments:

Post a Comment