C Program to enter a number n and print its multiplication table
from 1 to m
#include
#include
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
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Wednesday, December 31, 2008
C Program to enter a number n and print its multiplication table
Posted by ars at 11:41 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment