Final requirement is not met, and I'm stumped as to why.
package com.codegym.task.task04.task0427;
/*
Describing numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int length = (int)(Math.log10(a) + 1);
String b = "";
String c = "";
int d = 0;
if (a % 2 == 0)
b = "even";
if (a % 2 != 0)
b = "odd";
if (length == 1)
c = " single-digit number";
d = 1;
if (length == 2)
c = " two-digit number";
d = 1;
if (length == 3)
c = " three-digit number";
d = 1;
if (d == 1 && a > 0)
System.out.println(b + c);
else
System.out.print("");
}
}