main函数:
Scanner input = new Scanner(System.in);
int num = input.nextInt();
if(num%3==0 || num%5==0){
system.out.println(num+"是3或5的倍数");
}else{
system.out.println(num+"不是3或5的倍数");
}
PS:青鸟的?
main函数:
Scanner input = new Scanner(System.in);
int num = input.nextInt();
if(num%3==0 || num%5==0){
system.out.println(num+"是3或5的倍数");
}else{
system.out.println(num+"不是3或5的倍数");
}
PS:青鸟的?