array A = 1, 2, 7, -4, -3, 5, -1, 4, 6
set I = 0
set J = 0
while I < N
if A[I] < 0
set J = J + 1
set I = I + 1
The 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 stores 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?
Asked by: Priya on Dec 3, 2018.EDIT
Your Answer :
Email *: (Required but will not be displayed)
» Your answers will be displayed only after manual approval.