hello i'm student learn C programming..anyone cn help me with this question for sorting

Write a C program using a for loop that sums the even-numbered elements (elements 0, 2, and 4)
from an array list. Example for the list shown in exercise 1, the sum would be 126 (30+51+45).
need with sorting...