SUBMISSION LINK
https://www.hackerrank.com/contests/y16csecs/challenges/iseven-1
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
long long int t,n;
scanf("%lld",&t);
while(t--)
{
scanf("%lld",&n);
if(n%2==0)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
return 0;
}
https://www.hackerrank.com/contests/y16csecs/challenges/iseven-1
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
long long int t,n;
scanf("%lld",&t);
while(t--)
{
scanf("%lld",&n);
if(n%2==0)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
return 0;
}
Comments
Post a Comment