I can see the code is failing when entering a zero but can't get my statements the correct way to make it verify, can anyone point me in the right direction with this. Thanks
package com.codegym.task.task04.task0427;
/*
Describing numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//System.out.println("enter");
int a = Integer.parseInt(br.readLine());
if (a < 10 && a % 2 == 0)
System.out.println("even single-digit number");
else if (a < 10 && a % 2 == 1)
System.out.println("odd single-digit number");
else if (a < 100 && a % 2 == 0)
System.out.println("even two-digit number");
else if (a < 100 && a % 2 == 1)
System.out.println("odd two-digit number");
else if (a < 1000 && a % 2 == 0)
System.out.println("even three-digit number");
else if (a < 1000 && a % 2 == 1)
System.out.println("odd three-digit number");
}
}