include stdio include stdlib define int main int argc char argv int in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>
#define N 5
int main(int argc, char *argv[]) {
int p[N];
int i,sum;
sum=0;
for (i=0;i<N;i++)
{printf("Vvedite ellement massiva \n");
scanf("%d", &p[i]);
sum+=p[i];}
printf("sum= %d",sum);
system ("PAUSE");
return 0;
}