Question: BEGIN MAIN CREATE myArray [ ] = { 9 , - 2 , 3 0 , - 3 , 9 8 , 1 2 }

BEGIN MAIN
CREATE myArray []={9,-2,30,-3,98,12};
CREATE max = array[0];
FOR (CREATE i=1,i6,i++)
myArray [i]>max
max= myArray i
END IF
END FOR
PRINT("The maximum value is "+ max);
END MAIN
What is the length/size of myArray?
7
0
6
5
BEGIN MAIN CREATE myArray [ ] = { 9 , - 2 , 3 0 ,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!