#include
#include
using namespace std;
int main ()
{
const int N=10;
int mass[N];
int x,sum=0;
srand (time(NULL));
for (int i=0;i
{
x=rand()%50;
cout << x << ' ';</span>
mass[i]=x;
}
if (N%2!=0)
{
mass[N-1]=0;
}
for (int i=0;i
sum+=mass[i]*mass[i+1];
cout << endl << sum;<span>
system ("PAUSE>>VOID");
return 0;
}