#include <stdio.h>

int main() {
    int n[9];
   
    for(int i=0; i<9; i++){
        scanf("%d", &n[i]);
    }
    printf("Coluna 0: %d", n[0]+n[3]+n[6]);
    printf("\nColuna 1: %d", n[1]+n[4]+n[7]);
    printf("\nColuna 2: %d", n[2]+n[5]+n[8]);

    return 0;
}

Embed on website

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