+ 3
hw do i fill
Fill in the blanks to print the sum of the two variables. int x = 2; int y = 4; int result = x _ _; System.out.println();
3 Answers
+ 2
The answer is:
int result = x + y;
The sum of the two variables will be an addition so you put â+â
Then we need the two variables which are âxâ and âyâ
Therefore the answer is x + y
0
the print statement should include result: System.out.println(result);
0
int result=x+y;
System.out.println(result);