C Program to enter a number n and print its multiplication table
from 1 to m
#include<stdio .h="">
#include<conio .h="">
void main()
{
int num,i,mul,no;
clrscr();
printf("\nenter the number:");
scanf("%d",&num);
printf("\nenter the no of times:");
scanf("%d",&no);
for (i=1;i<=no;i++)
{
mul=num*i;
printf("\n%d times %d=%d",num,i,mul);
}
getch();
}
***************OUTPUT****************
enter the number:4
enter the no of times:5
4 times 1=4
4 times 2=8
4 times 3=12
4 times 4=16
4 times 5=20</conio></stdio>