include stdio include stdlib define run this program using the console

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
#define N 5
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int p[N];
int i,sum;
sum=0;
printf("Vvedite massive\n");
for (i=0;i<N;i++)
sum+=p[i];
scanf("sum= %d",sum);
system ("PAUSE");
return 0;
}