Fill in the missing parts in the following code to print 13. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 7

Fill in the missing parts in the following code to print 13.

int x = 25; int y; y = - 12; System.out.println( );

3rd Jun 2017, 2:15 PM
karim Saou
karim Saou - avatar
8 Answers
+ 3
System.out.println(y); Phhh you changed the question! Now its System.out.println(x+y); 😶
3rd Jun 2017, 2:59 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
Not only did you give me the answer, but you also made me realize how it was done, therefore making me learn why the answer is X. Thanks!
25th Jun 2017, 8:18 PM
Aaron Laplante
Aaron Laplante - avatar
+ 1
Thanks so much guys, you guys are very helpful by the way please explain me in detail
2nd Sep 2021, 9:01 PM
Rashed Khan
0
Fill in the missing parts in the following code to print 13. int x = 25; int y; y = x - 12; System.out.println( y );
27th Jan 2021, 5:54 PM
SAKTISH MANOHARAN
SAKTISH MANOHARAN - avatar
- 1
System.out.println(x+y);
3rd Jun 2017, 2:23 PM
LordHill
LordHill - avatar
- 1
lol
24th Mar 2021, 4:02 PM
Piter-oane Machuta
Piter-oane Machuta - avatar
- 3
int x = 25; int y; y = x- 12; System.out.println(y);
27th Oct 2017, 5:24 PM
Mohammad Javad.Sami
- 5
Fill in the missing parts in the following code to print 12.
30th Mar 2021, 7:56 AM
Bafoyev Abdullo