Problem Code:ELECTIONS
Contest Code:Practice
Status:Correct Answer
Language : C(NOTE : Try a few times yourself before moving to the solution)
Problem Code:
ELECTIONSContest Code:Practice
Status:
Correct Answer
#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