**Introduction**

This tutorial of c++ will show you to create a program of multiplication of numbers from arrays. The program below is given. The program is not extendable. Go enjoy the program. Lets begin………

**Program to calculate the product of numbers in array.**

#include<iostream.h>

#include<conio.h>

void main()

{

//clear the screen.

clrscr();

//declare variable type int

int a[10],i,sum=1;

//Input the two numbers save them in arrays.

//Here for loop is used to input multiple numbers in array.

for(i=0;i<5;i++)

{

cout<<“Enter the no.”<<endl;

cin>>a[i];

}

//add the arrays

for(i=0;i<5;i++)

sum=sum*a[i];

//show the sum

cout<<“Multiplication of arrays is “<<sum<<endl;

//get character

getch();

}

**Output**

Enter the no.

1

Enter the no.

2

Enter the no.

3

Enter the no.

4

Enter the no.

5

Multiplication of arrays is 120

**How does it work**

- You enter the number.
- The number is saved in respective array.
- The numbers from arrays are multiplied.
- The multiplication is printed.

**Extending it**

The program cannot be extended.

**Explanation.**

- Include ‘iostream.h’ and ‘conio.h’ files.
- Add void main.
- Start program by first clearing the screen.
- Declare the variables as int (name them as you want.)
- Add the cout and cin of array.
- Multiply the arrays.
- Print the product.

**At the end**

You learnt creating the C++ program of Multiplication or product of numbers in array. So now enjoy the program.

Please comment on the post and share it.

And like it if you liked.