Floating point number even or odd
Submissions: 998   Accuracy:

40.23%

  Difficulty: Basic   Marks: 1

Given a floating point number, check whether it is even or odd.

Examples :

Input : 100.7
Output : odd

Input : 98.8
Output : even

Input : 100.70
Output : odd
Trailing 0s after dot do not matter.

INPUT: The first line consists of an integer T i.e. the number of test cases. First line of each test case consists of a integer n. Second and last line of each test case consists of input string s.
OUTPUT: Print "ODD" or "EVEN" based on the floating point number.

CONSTRAINTS:
1<=T<=100
3<=|Length of string|<=104

EXAMPLES:
INPUT:

2
6
172.17
7
1294.20
OUTPUT:
ODD
EVEN

** For More Input/Output Examples Use 'Expected Output' option **

Author: saksham0751


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.