Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution {
- public static void main(String[] args) throws Exception {
- BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
- int a = Integer.parseInt(read.readLine());
- String result = new String();
- {
- if (a < 999 && a >= 1)
- {
- if (a % 2 == 0) result = "четное";
- else result = "нечетное";
- if (a >= 0 && a <= 9) result += " однозначное";
- if (a >= 10 && a <= 99) result += " двузначное";
- else if (a >= 100) result += " трехзначное";
- result += " число";
- }
- }
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement