Program in visual basic to calculate the sum of the elements of array.

 

 

 

 

  Output :