1) Create a 1D array a[10] and randomly assign 10 integers to the array
2) Add all the numbers in the array and output the result1
3) Add all the numbers in even index of the array a[0],a[2],....,and minus all the numbers in the odd index of the array a[1], a[3],...., output the result2
4) All the steps should be done in one main function.
Tags: