Primer decimal parell?


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Volem saber si, donat un nombre decimal, el seu primer dígit decimal és parell (true) o senar (false). Cal tenir en compte que el zero es considera un nombre parell.

Input Format

Una nombre decimal.

Constraints

-

Output Format

Si el primer dígit de la part decimal del nombre és parell, cal mostrar true per pantalla.
Altrament, cal mostrar false per pantalla.

Test Case 1

Input
5.1
Output
false

Test Case 2

Input
7.49
Output
true

Test Case 3

Input
10
Output
true

Test Case 4

Input
4.5
Output
false

Test Case 5

Input
7.75
Output
false

Test Case 6

Hidden: this is a private test case!


Authorship: Fernando Porrino Serrano

CC BY-NC-SA 4.0