- 39

what this solve , int x= 2; int y=4; int result =x+y; system.out.println (.....)

30th Jul 2016, 12:57 AM
Ani Nuraeni
Ani Nuraeni - avatar
38 Respostas
0
system.out.println("your answer is = "+result); and you can also set other conditions depending on what you want
30th Jul 2016, 11:09 AM
Paul Bereobong Clement
Paul Bereobong Clement - avatar
0
system. out. print ln("x+y");
2nd Aug 2016, 4:55 PM
namiraty omar
namiraty omar - avatar
0
do that
2nd Aug 2016, 4:55 PM
namiraty omar
namiraty omar - avatar
0
firstly your statement is wrong ..it is System not system ..this will show compilation error. so your correct answer will be "System.out.println("solution="+result);" so this will help you out.
18th Aug 2016, 4:28 PM
Suraj Vishwakarma
Suraj Vishwakarma - avatar
0
where's the answer?? I answer it x+y in the int result Then what now in Syos?? pls help.
12th Feb 2017, 6:45 AM
Mitch De Luna Mapue
Mitch De Luna Mapue - avatar
0
what can i write
24th Sep 2017, 1:59 PM
stark
0
hey
24th Jun 2018, 12:03 PM
Murad Khan
Murad Khan - avatar
0
What value is stored in the result variable? int x = 8, y = 5; int result = x % y;
5th Jul 2018, 5:18 AM
Divakar Dhïñø
Divakar Dhïñø - avatar
0
What value is stored in the result variable? int x = 8, y = 5; int result = x % y;
5th Jul 2018, 5:20 AM
Divakar Dhïñø
Divakar Dhïñø - avatar
0
Result
20th Aug 2018, 6:33 AM
Ravi Teja
Ravi Teja - avatar
0
Result =6
20th Aug 2018, 6:33 AM
Ravi Teja
Ravi Teja - avatar
0
int x= 2; int y=4; int result =x+y; system.out.println(result); if this is the answer the site wont take it as such?
6th Jul 2019, 6:11 PM
chris
0
Its ok i was been stupid :) lol
6th Jul 2019, 6:12 PM
chris
0
int x = 2; int y = 4; int result = x +y; System.out.println(result);
16th May 2020, 1:38 PM
Ismail ELHAMMOUTI
Ismail ELHAMMOUTI  - avatar
0
what is the output of this code? int x=2; int y=++x*2+*; system.out.println(++x*""+y);
18th Sep 2020, 10:20 PM
ABDULLAHI AMINU
0
Please type in a code to declare two variables of type int and print their sum using the sum variable. int x = 4; y = 7; int sum = x y; System.out.println( );
26th Dec 2020, 3:26 PM
ALPHA A BARRY
0
Addition Fill in the blanks to print the sum of the two variables. int x = 2; int y = 4; int result = x + y; System.out.println(result);
23rd Mar 2021, 3:52 PM
Tejashree Suryawanshi
Tejashree Suryawanshi - avatar
0
+ y result
8th Jun 2021, 11:26 AM
Nikunj Vagadiya
Nikunj Vagadiya - avatar
0
easy just add the integer values ans= 6
23rd Oct 2021, 2:21 PM
Dozine Ohams
Dozine Ohams - avatar
0
Addition Fill in the blanks to print the sum of the two variables. int x = 2; int y = 4; int result = x + y; System.out.println(result);
13th Dec 2021, 5:23 AM
M.H.F Zahra