输入一个整数,判断是否被2,3整除。如果能被2和3同时整除,则输出“n is divisible by 2 and 3”(n是输入的整数)。如果只能被2或3整除,则输出“n is divisible by 2 or 3, but not both”,如果都不能被2和3同时整除,则输出“n is not divisible by 2 and 3”
输入样例:
在这里给出一组输入。例如:
6
输出样例:
在这里给出相应的输出。例如:
6 is divisible by 2 and 3
import java.util.*;
public class Main{
public static void main