It's simple problem but I don't know what should I do :(
package com.codegym.task.task04.task0427;
/*
Describing numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
InputStream keyboard = System.in ;
Reader keyboardStream = new InputStreamReader(keyboard) ;
BufferedReader input = new BufferedReader(keyboardStream) ;
String num = input.readLine() ; //Get a variable from input.
int a = Integer.parseInt(num) ; //change input to a number.
if (a < 10 && a >= 0) {
if (a%2 == 0) {
System.out.println("even single-digit number") ;
}
else {
System.out.println("odd single-digit number") ;
}
}else if (a < 100 && a >= 10) {
if (a%2 == 0) {
System.out.println("even two-digit number") ;
}
else {
System.out.println("odd two-digit number") ;
}
}else if (a < 1000 && a >= 100) {
if (a%2 == 0) {
System.out.println ("even three-digit number") ;
}
else {
System.out.println ("odd three-digit number") ;
}
} else if ((a < 0) || (a >= 1000)) {
System.out.println() ;
}
}
}