Declare an array named a of 10 elements of type int and initialize the elements (starting with the first) to the values 10, 20, …, 100, respectively.
LANGUAGE: C++
CHALLENGE:
Declare an array named a of 10 elements of type int and initialize the elements (starting with the first) to the values 10, 20, …, 100, respectively.
SOLUTION:
int a[10] = {10,20,30,40,50,60,70,80,90,100};