Question: Unix/Lunix Programming Exercise 6 Write a script that first constructs an array and then determines if there exists two (distinct) elements in your array that
Unix/Lunix Programming
Exercise 6
Write a script that first constructs an array and then determines if there exists two (distinct) elements in your array that can sum up to a given integer. (Finish the code below).

#1 /bin/bash # twoSum : determine if there exists two distinct elements in an array #that sum up to a given integer n=$( ) # REPLACE for number of array-elements for (( i=0; ia-i; i++ )); do # REPLACE " "s for proper initialization and continuation for j-index for (( j-.... j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
