This is the code I had submitted :-
#include <stdio.h>
int main ()
{ int t,j;
scanf ("%d", &t);
for (j=1;j<=t;j++)
{ int n;
scanf ("%d",&n);
if (n%2==0)
printf ("%d",n);
else
printf ("%d",n-1);
}
return 0;
}
Can anyone explain why it is wrong ?