返回列表 發帖
  1. import java.util.*;
  2.         class JPA02 {
  3.             static Scanner input = new Scanner(System.in);
  4.             public static void main(String[] args) {
  5.                 test();
  6.                 test();
  7.             }
  8.           
  9.             public static void test() {
  10.                 System.out.println("Input : ");
  11.                 int x=input.nextInt();
  12.                 if(x%5==0 && x%9==0)
  13.                 {
  14.                   System.out.println("Yes");
  15.                 }
  16.                 else{
  17.                         System.out.println("No");
  18.                 }
  19.             }
  20.         }
複製代碼

TOP

返回列表