PROGRAM TO PRINT THE ‘n’ TABLES

Programming Languages

/* PROGRAM TO PRINT THE ‘n’ TABLES */

#include<stdio.h>
#include<conio.h>

void main()
{
int i,n,t,j;
clrscr();
printf(“\n\nENTER THE VALUE OF N :”);
scanf(“%d”,&n);
for(i=1;i<=n;i++)
{
printf(“\n\n THE %d’s TABLE IS\n\n”,i);
for(j=1;j<=10;j++)
{
t=i*j;
printf(“\n %d * %d = %d\n”,i,j,t);
}
getch();
}
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.