Task
Print the sum of the integers in the array.
Sample Input 0
6
16 13 7 2 1 12
Sample Output 0
51
Sample Input 1
7
1 13 15 20 12 13 2
Sample Output 1
76 Program Code#include <stdio.h>#include <string.h>#include <math.h>#include <stdlib.h>
int main() { int n,i,j,arr[1000],sum = 0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d ",&arr[i]); } for(i=0;i<n;i++) { sum = sum+arr[i]; } printf("%d ",sum); return 0;}