Justdoing some data structures examples
Index 0 will equal 1950 and index 9 will equal 1960, so you shouldn't use the actual numbers of the years in your code, since your code and the array with 10 items is an abstraction of them.
- Change your loops to
for(k=0;k<10;k++)
. - When printing this internal, abstract representation to something meaningful for the user, you should
printf("%d", k+1950)
.