package congcong;
import java.util.Scanner;
public class or35{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int num=sc.nextInt();
boolean str=or35(num);
System.out.println(str);
}
private static boolean or35(int num) {
// TODO Auto-generated method stub
if((num%3==0)||(num%5==0)){
System.out.println("能被3和5整除");
return true;
}else{
return false;
}
}
}
网友评论