//this is program to print the table of all the numbers from 1-n
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,j;
printf("\n\nEnter any Number: ");
scanf("%d",&n);
printf("\n\nDisplaying the tables from 1 to %d",n);
for(i=1;i<=n;i++)
{
printf("\nPrinting the table of %d",i);
for(j=1;j<=10;j++)
{
printf("\n\t%d X %d = %d",i,j,i*j);
}
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,j;
printf("\n\nEnter any Number: ");
scanf("%d",&n);
printf("\n\nDisplaying the tables from 1 to %d",n);
for(i=1;i<=n;i++)
{
printf("\nPrinting the table of %d",i);
for(j=1;j<=10;j++)
{
printf("\n\t%d X %d = %d",i,j,i*j);
}
}
getch();
}