2 2 votes 1. Write an algorithm to store N numbers in an array. Find the product of the elements of the array that are odd. Algorithms algorithms data-structures linked-list sorting + – Ebrahim 565 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Array[n] \\Array contains integers Odd_Array[] for I to n: if Array[i]&1==1 then Odd_Array.append(Array[i]) for i to n: for j to m: print(Odd_Array[i]*Odd_Array[j]) Malyadri_Muppuri answered Oct 3, 2024 Malyadri_Muppuri comment Share Follow See 1 comment 1 1 comment reply Shaik Masthan commented Oct 7, 2024 reply Follow flag To find product of all elements in the odd_Array, why two loops required? 0 0 replyShare Please log in or register to add a comment.