This Java program takes a user-input number as a command line argument, stores it as an integer, and then uses modulo (%) operations to check if the number is divisible by 2, 3, 5, and 7. It prints out whether each test returns true or false.
This Java program takes a user-input number as a command line argument, stores it as an integer, and then uses modulo (%) operations to check if the number is divisible by 2, 3, 5, and 7. It prints out whether each test returns true or false.
This Java program takes a user-input number as a command line argument, stores it as an integer, and then uses modulo (%) operations to check if the number is divisible by 2, 3, 5, and 7. It prints out whether each test returns true or false.