Tags: Arithmetic Operators //算术运算符
Given two integers N1 and N2, subtract the latter from the former and store the result as integer R.
给定两个整数 N1 和 N2,从前者中减去后者并将结果存储为整数 R。
Input
20
10
Output
10
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int N1 = s.nextInt();
int N2 = s.nextInt();
int R;
R=N1-N2;
System.out.print(R);
}
输出结果: