*Consider the number pattern shown: {599, 598, 597, 596, 595, ….} What is the rule to find the kᵗʰ term in the pattern?* 1️⃣ 599/k 2️⃣ 600 - k
Answers
Answered by
1
Answer:
Input the array elements.Initialize small = large = arr[0]Repeat from i = 2 to n.if(arr[i] > large)large = arr[i]if(arr[i] < small)small = arr[i]Print small and large.
Similar questions