#include <stdio.h>

int main() {
    int N, Soma=0;
    scanf("%d", &N);

    int V[N];
    for(int i=0; i<N; i++){
        scanf("%d", &V[i]);
        Soma=Soma+V[i];
    }
    printf("%d", Soma);
    return 0;
}

Embed on website

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