#include<stdio.h> int main() { int n = 0; scanf("%d",&n); int arr[50]; int i = 0; int sum = 0; for(i = 0;i<n;i++) { scanf("%d ",&arr[i]); sum +=arr[i]; } printf("%d\n",sum); return 0; }
#include<stdio.h> int main() { int n = 0; scanf("%d",&n); int arr[50]; int i = 0; int sum = 0; for(i = 0;i<n;i++) { scanf("%d ",&arr[i]); sum +=arr[i]; } printf("%d\n",sum); return 0; }