Help me in solving ELECTIONS problem

My issue

Hi

My code

#include <stdio.h>

int main() {
    // your code goes here
    int a, b, c, t, i;
    scanf("%d", & t);
    for (i = 0; i < t; i++)
    {
        scanf("%d%d%d", & a, & b, & c);
        if (a > 50)
            printf("A\n");
        if (b > 50)
            printf("B\n");
        if (a <= 50 && b < 50 && c <= 50)
            printf("NOTA\n");


    }

}

Problem Link: Elections in Chefland Practice Coding Problem

there can be a scenario where party C is >50 what about it?
write the if-statement for that.

As well as there can be a scenario where A and B got 50 or B and C get 50 votes, write if statement for that too.

Don’t just go with the example test cases think of cases which can be possible

You can go with these if statements:
if(a>50)
printf(“A\n”);
else if(b>50)
printf(“B\n”);
else if(c>50)
printf(“C\n”);
else{
printf(“NOTA\n”);
}