1.

Array A = 1, 2, 7, -6, -3, 5, -1, 4, 6read Nset I = 0set J = 0while I < Nif A[I] < 0set J = A[I]endifset I = I + 1endwhilewrite JThe first line of the program declares and initializes an array with 9 elements as shown. The second line of the program reads an integer from the input and tores it in N. The rest of the program does some computation, and the last line of the program prints the value of the variable J to the output.If the number 5 is provided as input to this program, what will the output of this program be?

Answer»

ANSWER:

a

Explanation:



Discussion

No Comment Found