返回列表 發帖
  1. import java.util.*;
  2. class JPA01 {
  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 a=input.nextInt();
  12.         if(a%5==0&&a%9==0)
  13.         {
  14.                 System.out.println("Yes");       
  15.                
  16.         }
  17.         else
  18.         {
  19.                 System.out.println("No");
  20.         }
  21.     }
  22. }
複製代碼

TOP

返回列表