I know what to put at int result x _ _ but what would you put after printIn(___)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I know what to put at int result x _ _ but what would you put after printIn(___)?

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

13th May 2017, 10:27 PM
IB Afifa
IB Afifa - avatar
5 Answers
+ 2
result
13th May 2017, 10:38 PM
Romulo Sanglard
Romulo Sanglard - avatar
+ 2
In order to see the answer, your would enter 'result', however, don't forget the ; on the print statement!
14th May 2017, 2:44 AM
Jim
Jim - avatar
0
i think
13th May 2017, 10:38 PM
Romulo Sanglard
Romulo Sanglard - avatar
0
thank you, Jim!
23rd May 2017, 1:08 PM
cmb770
0
Hi Jim and Co , the correct answer is below. remember you are adding to variables int x = 2; int y = 4; int result = x + y ; System.out.println(Result); Cheers, Clement
25th May 2017, 2:03 AM
Obeng clement opare
Obeng clement opare - avatar