Guest User

Untitled

a guest
Oct 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Tommi
  3. {
  4. public static void main(String[]args)
  5. {
  6. Scanner scan = new Scanner(System.in);
  7. while(scan.hasNext())
  8. {
  9. int a = scan.nextInt();
  10. int b = scan.nextInt();
  11. if(a%b == 0 || b%a == 0) System.out.println("TRUE");
  12. else System.out.println("False");
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment