Answer this please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Answer this please

Fill in the blanks to print the sum of the two variables. int x = 2; int y = 4; int result = x _ _ ; System.out.println(_);

7th Mar 2018, 5:07 AM
Sushant Kumar
Sushant Kumar - avatar
12 Answers
+ 3
int x= 2;int y= 4; int _= x+y; System.out.println(_); // u can use this to print the sum of two variable
7th Mar 2018, 5:54 AM
Harsh Agrawal
Harsh Agrawal - avatar
+ 3
What will be the output of this code? x = “2” y = “4” z = int(x) + int(y) print(z) 6
15th Nov 2021, 6:28 PM
Alireza adavi
Alireza adavi - avatar
+ 3
11th Mar 2022, 12:15 PM
A.Amara Jyothi
+ 2
int result = x + y; System.out.println(result); the output will be 6
16th Apr 2023, 7:59 AM
Mohamed Suleyman Ibrahim
Mohamed Suleyman Ibrahim - avatar
+ 1
The output will be 6 because 2 + 4 = 6
7th Mar 2018, 5:31 AM
Talha Khan
Talha Khan - avatar
+ 1
Int x =6 int y =4 int z=2
20th Aug 2022, 2:40 AM
Vikram Gautam
+ 1
Show me your minimal working approach
21st Jan 2023, 6:33 AM
Prantik Sarkar
Prantik Sarkar - avatar
0
X=4. X*=3
4th Feb 2022, 5:21 PM
Bebe Bebejewel07
0
System.out.print Ln(result);
27th Aug 2022, 8:33 PM
Ehab Gamal
0
System.out.println(result);
3rd Nov 2022, 3:33 PM
Inba Radhakrishnan
Inba Radhakrishnan - avatar
0
Answer send chei
17th May 2023, 1:26 AM
Sree hari
- 2
int x = 2; int y = 4; int total = x+y; System.out.println(total);
24th Mar 2018, 2:37 AM
robinson voranzov
robinson voranzov - avatar