C Program to Print Multiplication Table of Given Number

Here you will get C program to print duplication table of a given number.

Underneath program will request that client enter a number at that point show its table.

Program

#include<stdio.h>
 
int main()
{
	int i,n;
	printf("Enter any number:");
	scanf("%d",&n);
	printf("Table of %d is:\n", n);
	
	for(i=1;i<=10;++i)
		printf("\n%d*%d=%d",n,i,n*i);
 
	return 0;
}

Output

Enter any number:6
Table of 6 is:

6*1=6
6*2=12
6*3=18
6*4=24
6*5=30
6*6=36
6*7=42
6*8=48
6*9=54
6*10=60

DURGESH

I Love python, so I like machine learning a Lot and on the other hand, I like building apps and fun games I post blogs on my website for Tech enthusiast to learn and Share Information With The World.

Leave a Reply

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

fourteen − two =

Recent Content