Question: Given an input integer n, followed by n additional input integers for an array, write an algorithm in Coral that will find the sum

Given an input integer n, followed by n additional input integers for an array, write an algorithm in Coral that will find the sum of all the negative odd integers in the array. Below is a partially-complete algorithm: integer n integer array(?) A integer i integer sum n = Get next input. A.size = n sum=0 i = 0 while (in) A[i] = Get next input i = i + 1 i=0 while (in) if (???) sum sum +A[i] i= i+1 Put sum to output
Step by Step Solution
There are 3 Steps involved in it
Answer To complete the algorithm in Coral to find the sum of all the negative odd integers ... View full answer
Get step-by-step solutions from verified subject matter experts
