/*
  Somma gli elementi di un vettore.
*/

class SommaVettore {
  public static void main(String[] args) {
    int x[]={32, 65, 98, 31, 64, 97, 30, 63, 96, 29, 62, 95, 28, 61, 94, 27, 60, 93, 26, 59, 92, 25, 58, 91, 24, 57, 90, 23, 56, 89, 22, 55, 88, 21, 54, 87, 20, 53, 86, 19, 52, 85, 18, 51, 84, 17, 50, 83, 16, 49, 82};
    int i;
    int somma;

    somma=0;

    for(i=0; i<=x.length-1; i=i+1) {
      somma=somma+x[i];
    }

    System.out.println("La somma vale: "+somma);
  }
}
