#include <stdio.h>

int main() {
    int size, i;
    int sum = 0;

    scanf("%d", &size);

    int array[size];

    
    for (i = 0; i < size; i++) {
        scanf("%d", &array[i]);
        sum += array[i];
    }

    printf("%d\n", sum);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: