#include<stdio.h>
int main()
{
    int x[3][4];
    int a,b,c=0;
    for(a=0;a<3;a++)
    {
        for(b=0;b<4;b++)
        {
            scanf("%d",&x[a][b]);    
        }
    }
    for(int n=0;n<3;n++)
    {
        for(int m=0;m<4;m++)
        {
            if(x[n][m]==1)
            {
                c++;
            }
        }
        if(c==0)
        printf("E\n");
        if(c==1)
        printf("C\n");
        if(c==2)
        printf("B\n");
        if(c==3)
        printf("A\n");
        if(c==4)
        printf("D\n");

        c=0;
    }
    return 0;
}

Embed on website

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