golang backward loop

package main

import "fmt"

func main() {
    // Declare an array of integers
    numbers := [...]int{1, 2, 3, 4, 5}

    // Get the length of the array
    length := len(numbers)

    // Iterate over the array in reverse order using a backward loop
    for i := length - 1; i >= 0; i-- {
        // Access the element at the current index
        currentNumber := numbers[i]

        // Print the current element
        fmt.Printf("Element at index %d: %d\n", i, currentNumber)
    }
}