package com.item.demo1;
import java.util.Scanner;
public class HelloWorld {
public static void main(String[] args) {
//键盘输入
Scanner sc=new Scanner(System.in);
// 1键盘录入两个常熟
System.out.println("请输入一个整数");
int number1=sc.nextInt();
System.out.println("请输入第二个整数");
int number2=sc.nextInt();
boolean result=number1==6||number2==6||(number1+number2)%6==0;
System.out.println(result);
}
}
运行结果