To print the multiplication table of a given number


Levels of difficulty: / perform operation:

C Program

#include <stdio.h>
#include <conio.h>
void main()
{
	int n,i;
	clrscr();
	printf("\nENTER A NUMBER: ");
	scanf("%d",&n);
	printf("\nMULTIPLICATION TABLE OF %d\n",n);
	for(i=1;i<=10;i++)
	{
		printf("\n%2d x %2d = %3d",n,i,n*i);
	}
	getch();
}


Output







Quantitative Aptitude
Reasoning
Programming
Interview