Given two integers N1 and N2, find their sum and store in R.
The code to read N1 and N2 as well as to print R has already been provided.
给定两个整数N1和N2,并将它们的和储存在R中。
Input
10
20
Output
30
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);
}
输出结果判定: