+ 1

how do you fill out this equation in between the parenthesis

int x = 2; int y = 4; int result = x + y; System.out.println( );

13th Feb 2018, 8:21 PM
Eryn Gowan
Eryn Gowan - avatar
1 Odpowiedź
+ 9
This depends entirely on what you want to print. Though, I assume you just want to print result. In that case: System.out.println(result); This prints the value of the variable 'result'. 'result' is x + y, which is 4 + 2, which is 6. So, 6 will be printed.
13th Feb 2018, 8:38 PM
Rrestoring faith
Rrestoring faith - avatar