int num1 = 10;
int num2 = 5;
int num = num1 + num2;
if (num % 3 == 0 && num % 5 == 0 ){
System.out.println("可以被3和5整除");
}else{
System.out.println("不可以被3和5整除");
}
int num1 = 10;
int num2 = 5;
int num = num1 + num2;
if (num % 3 == 0 && num % 5 == 0 ){
System.out.println("可以被3和5整除");
}else{
System.out.println("不可以被3和5整除");
}