human
Product of all Subarrays of an Array | Set 2 | Function to find the product of elements of all subarray.
Initialize the result.
Computing the product of subarray using formula.
Return the product of all elements of each subarray.
Given array arr [ ].
Function Call"
Solution in Python:

Write me a code to product of all Subarrays of an Array and the other steps required?
assistant
#Here is code to product of all Subarrays of an Array and the other steps required.
 def SubArrayProdct ( arr , n ) :
	result = 1 ;
	for i in range ( 0 , n ) :
		result *= pow ( arr [ i ] , ( i + 1 ) * ( n - i ) ) ;
	return result ;
arr = [ 2 , 4 ] ;
N = len ( arr ) ;
print ( SubArrayProdct ( arr , N ) )