Solution
#include<stdio.h>
int main()
{
int t;
char str[100];
scanf("%d",&t);
while(t--)
{
scanf("%s",str);
if(((str[0]-48)%2)==0)
printf("EVEN\n");
else
printf("ODD\n");
}
return 0;
}
For python program visit the link given below.This blog is to help for the programmers to learn the programs and not to demotivate any people .Our intention is to make the learners to learn the code easily.
2
10
22
ODD
EVEN
3
00
11
22
EVEN
ODD
EVEN
Problem Description Ram and Sita playing the parity game. Two types of parity are there. One is odd parity and next is even parity. Ram will...
No comments:
Post a Comment