NextIndexPrevious

Programs in C language

7. Program to print multiplication table of a given number.

#include<stdio.h>
void main()
{
	int n, i;
    clrscr();
    printf("Enter a number");
    scanf("%d",&n);
    
    for(i=1;i<=10;i++)
    {
    	printf("\n%d x %d = %d",n,i,n*i);
     }
     getch();
}
Input :
9
Output :
9x1=9
9x2=18
9x3=27
9x4=36
9x5=45
9x6=54
9x7=63
9x8=72
9x9=81
9x10=90


Father of C Language
Dennis Ritchie

Dennis Ritchie

Born: September 9, 1941, Bronxville
Died: October 9, 2011, Murray Hill
Google+