How to multiply the elements of an array by a number without looping
Answers
Answered by
1
Answer :
Program for multiplication of array elements
We are given an array and we have to calculate the product of an array using both iterative and recursive method.
Examples :
Input : array[] = {1, 2, 3, 4, 5, 6}
Output : 720
Here, product of elements = 1*2*3*4*5*6 = 720
Input : array[] = {1, 3, 5, 7, 9}
Output : 945
Answered by
0
what is the latest version of windows
Similar questions