Headlines
Loading...
C Program to enter a number n and print its multiplication table

C Program to enter a number n and print its multiplication table

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",&amp;num);
printf("\nenter the no of times:");
scanf("%d",&amp;no);
for (i=1;i&lt;=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>
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***