Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Tommi
- {
- public static void main(String[]args)
- {
- Scanner scan = new Scanner(System.in);
- while(scan.hasNext())
- {
- int a = scan.nextInt();
- int b = scan.nextInt();
- if(a%b == 0 || b%a == 0) System.out.println("TRUE");
- else System.out.println("False");
- }
- }
- }
Add Comment
Please, Sign In to add comment