Qtr No. 213, New Town Yehlanka
Indore 454775, India
What is the output of the below code?
Note: Assume all necessary imports are done
func main() {
arr := [6]int{10, 20, 15, 2, 90, 23}
for i := 1; i < len(arr)-1; i++ {
if arr[i] >= arr[i-1] && arr[i] > arr[i+1] {
fmt.Println(arr[i])
}
}
}
90
20
20, 90
15, 90
To get all Infosys Certified Go Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee