import java.util.InputMismatchException; import java.util.Scanner; public class Main { public static int num1; public static int num2; public static void main(String[] args) { scanInt(); } public static void scanInt(){ System.out.println("なんか数字2つ入力してみてや"); Scanner scn = new Scanner(System.in); try{ num1 = scn.nextInt(); num2 = scn.nextInt(); ans(); }catch(InputMismatchException e){ System.out.println("数字を入力してやあああ#"); } } public static void ans(){ if(waru()){ System.out.println(answerInt()); }else{ System.out.println(answerNo()); } } private static boolean waru(){ if(num1 % num2 == 0){ return true; }return false; } private static String answerNo(){ return "NO"; } private static int answerInt(){ return num1 / num2; } }