package com.codegym.task.task04.task0427; /* Describing numbers */ import java.io.*; import java.util.Scanner; public class Solution { static Scanner scan = new Scanner(System.in); static int number = scan.nextInt(); Solution solu = new Solution(); int newNumber() { number %= number; return number; } int number1 = newNumber(); public static void main(String[] args) throws Exception { System.out.println(number);//write your code here Solution solut = new Solution(); if (number < 10 && solut.number1 == 0) System.out.println("even single-digit number"); else { if (number >= 10 && number < 100 && solut.number1 == 0) System.out.println("even two-digit number"); if (number >= 100 && number < 1000 && solut.number1 == 0) System.out.println("even three-digit number"); if (number < 10 && solut.number1 == 1) System.out.println("odd single-digit number"); if (number >= 10 && number < 100 && solut.number1 == 1) System.out.println("odd two-digit number"); if (number >= 100 && number < 1000 && solut.number1 == 1) System.out.println("odd three-digit number"); } } }