# C++ Program to Print Multiplication Table of any Number1 min read

In this tutorial, we will write a C++ program to generate a multiplication table for any number and also for the given range.

In order to understand the program, you should go through the following topic in C++.

## C++ Program to Print Multiplication Table of any Given Number

The program will print the table of the number entered by the user up to 10. The program uses for loop to iterate and print the number.

Output:

`Enter the number: 44 * 1 = 44 * 2 = 84 * 3 = 124 * 4 = 164 * 5 = 204 * 6 = 244 * 7 = 284 * 8 = 324 * 9 = 364 * 10 = 40`

## C++ Program to Print Multiplication Table of any Number upto a given range

This program will work as same as the above, the extra feature added here is the range. The above program displays the table of any number up to 10 but here it will print the table up to the user’s choice.

The program takes user input for the number whose table needs to be displayed and also the range up to which number it should display.

Output:

`Enter the number: 6Enter range: 156 * 1 = 66 * 2 = 126 * 3 = 186 * 4 = 246 * 5 = 306 * 6 = 366 * 7 = 426 * 8 = 486 * 9 = 546 * 10 = 606 * 11 = 666 * 12 = 726 * 13 = 786 * 14 = 846 * 15 = 90`

### Find the output ab, cd, ef, g for the input a,b,c,d,e,f,g in Javascript and Python

In this tutorial, we will write a program to find a pairs of elements from an array such that for the input [a,b,c,d,e,f,g] we will …

### String Pattern Programs in C

In this tutorial, we will write various C pattern programs for String. Before that, you may go through the following topics in C. for loop …

### Java Program to Find pair of Integers in Array whose sum is given Number

In this tutorial, we will write a program to find a pair of elements from an array whose sum equals a given number in java …

### Program to Print Diamond Alphabet Patterns in C

In this tutorial, we will learn to write a C program to print Diamond patterns using alphabets/characters. However, in this tutorial, we will create a …

### Half Diamond Pattern in C using Alphabets

In this tutorial, we will learn and code the half diamond alphabet patterns in C programming language. However, in this tutorial, we will create a …

### Half Pyramid of Alphabets in C

In this tutorial, we will learn and code alphabet patterns in C programming language specifically the Half pyramid of alphabets in C programming. However, in …