Computer Science, asked by akashmaloth001, 2 months ago

Max element in the array python

Answers

Answered by babydoll57
0

Answer:

STEP 1: Declare and initialize an array.

STEP 2: Store first element in variable max.

STEP 3: Loop through the array from 0 to length of the array and compare the value of max with elements of the array.

STEP 4: If any element is greater than max, max will hold the value of that element.

Similar questions