public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s; int i;
System.out.println("Please enter the number. To close the program type \"exit\"");
while (true) { s = reader.readLine(); if (s.equals("exit")) break;
i = Integer.parseInt(s); if (i % 29 == 0 && i % 2 == 0 && i < 50) System.out.println(i + " is a correct number"); else System.out.println(i + " is an incorrect number"); }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment