Tuesday, 20 November 2012

Multiplication Table using C

Program:
#include<stdio.h>
#include<conio.h>
void main()
{
int n,p,i;
printf("\n enter the noof which u want to see the table");
scanf("%d",&n);
for(i=1;i<=10;i++)
{
p=n*i;
printf("\n%d *%d=%d",n,i,p);
}
getch();
}

Output:


 

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...