Elections in Chefland

Problem Code:
ELECTIONS

Contest Code:Practice
Submission byrashmi1729
Submitted: 6 days ago

Status:
Correct Answer


Language : C
(NOTE : Try a few times yourself before moving to the solution)


#include <stdio.h>

int main(void) {
	int t;
	scanf("%d\n",&t);
	
	while(t--)
	{
	    int a, b, c;
	    scanf("%d %d %d",&a,&b,&c);
	    
	    if(a>50)
	    printf("A\n");
	    else if(b>50)
	    printf("B\n");
	    else if(c>50)
	    printf("C\n");
	    else
	    printf("NOTA\n");
	}
	return 0;
}



No comments:

Post a Comment