+ 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();

3rd Jul 2018, 12:23 PM
Israel Moupi
3 Respostas
+ 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
3rd Jul 2018, 12:30 PM
Agent
Agent - avatar
0
the print statement should include result: System.out.println(result);
3rd Jul 2018, 9:36 PM
Victor Tsado Shaba
Victor Tsado Shaba - avatar
0
int result=x+y; System.out.println(result);
4th Jul 2018, 4:06 AM
Rajeshwari N
Rajeshwari N - avatar