//第一关
package step1;
import java.util.Scanner;
class Cal {
public static void main(String[] args) {
/*********start*********/
Scanner input = new Scanner(System.in);
int a, b;
System.out.println("请输入第一个整数");
a = input.nextInt();
System.out.println("请输入第二个整数");
b = input.nextInt();
System.out.println("两数相加的结果为:" + (a+b));
System.out.println("两数相减的结果为:" + (a-b));
System.out.println("两数相乘的结果为:" + (a*b));
System.out.println("两数相除的结果为:" + (a/b));
System.out.println("两数取余数的结果为:" + (a%b));
/*********end*********/
}
package step2;
import java.util.Scanner;
class Relative {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
/*********start*********/
boolean ans;
System.out.println("a==b="+ (ans = (a==b)));
System.out.println("a!=b="+ (ans = (a!=b)));
System.out.println("a>b="+ (ans = (a>b)));
System.out.println("a<b="+ (ans = (a<b)));
System.out.println("b>=a="+ (ans = (b>=a)));
System.out.println("b<=a="+ (ans = (b<=a)));
/*********end*********/
}
}
package step3;
import java.util.Scanner;
class testLogic {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
boolean a=sc.nextBoolean();
boolean b=sc.nextBoolean();
boolean c=sc.nextBoolean();
/*********start *********/
System.out.println(!a);
System.out.println(a&&b);
System.out.println(b||c);
System.out.println(a^b);