human
Sum of array elements which are multiples of a given number | Function to find the sum of array elements which are multiples of N.
Stores the sum.
Traverse the array.
Print total sum.
Driver Code.
Given arr [ ].
Function call"
Solution in Python:

Write me a code to sum of array elements which are multiples of a given number and the other steps required?
assistant
#Here is code to sum of array elements which are multiples of a given number and the other steps required.
 def mulsum ( arr , n , N ) :
	sums = 0
	for i in range ( 0 , n ) :
		if arr [ i ] % N == 0 :
			sums = sums + arr [ i ]
	print ( sums )
if __name__ == " _ _ main _ _ " :
	arr = [ 1 , 2 , 3 , 5 , 6 ]
	n = len ( arr )
	N = 3
	mulsum ( arr , n , N )