/* Program 7-4

   Computing the sum of the elements of an array */

main ()
 {
  int array1[12] = {1, 3, 5, 4, 7, 2, 99, 16, 45, 67, 89, 45};
  int i, total = 0;

  for ( i = 0; i < 12; ++i )  /* display the array */
   total += array1[i];
 
   printf ("Total of array element values is %d\n", total);
 }


/* Program Output

Total of array element values is 383

*/
