結果 : write a program to read and display the elements using 1d array