Leaderboard
Showing:
Floating point number even or odd
Basic Accuracy: 42.26% Submissions: 1623 Points: 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

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.

Floating point number even or odd

Output Window