C#: Find the product of two integers in an array
Write a C# Sharp program to find two numbers in an array of integers whose product is equal to a given number.
Sample Data:
({10, 18, 39, 75, 100}, 180) -> {10, 18}
({10, 18, 39, 75, 100}, 200) -> {}
({10, 18, 39, 75, 100}, 702) -> {18, 39}
Sample Solution:
C# Sharp Code:
Sample Output:
Original array elements: 10, 18, 39, 75, 100 The given number (n): 180 Product of two integers in the said array equal to n: 10, 18 Original array elements: 10, 18, 39, 75, 100 The given number (n): 200 Product of two integers in the said array equal to n: Original array elements: 10, 18, 39, 75, 100 The given number (n): 702 Product of two integers in the said array equal to n: 18, 39
Flowchart:

C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous C# Sharp Exercise: Smallest positive which is not present in an array.
Next C# Sharp Exercise: C# Sharp Searching and Sorting Algorithm Exercises
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.