#include <iostream.h>
#include <conio.h>

void leer (int valores [10]);
int suma (int valores [10]);

void main()
{
int valores[10];
clrscr();
leer (valores);
cout<<"LA SUMA DE LOS 10 ELEMENTOS ES: "<<suma (valores);
getch();
}

void leer (int valores[10])
{
for (int i=1; i<=10; i++)
 {
  cout<<"TECLEA EL VALOR: "<<i<<endl;
  cin>>valores[i];
 }
}
int suma (int valores[10])
 {
  int total=0;
  for (int i=1; i<=10; i++)
  total += valores [i];
  return total;
}

