7/30/2016 12:57:20 AM
system.out.println("your answer is = "+result);
and you can also set other conditions depending on what you want
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?
Its ok i was been stupid :) lol
int x = 2; int y = 4;
int result = x +y;
system.out.println(result) will print out the result variable, which is the addition of the x and y variables 2 and 4. So 6.
you are right
it is easy just add the integer values ans 6
as one of our friend is said
hihi i am just beginner
system. out. print ln("x+y");
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.
where's the answer?? I answer it x+y in the int result Then what now in Syos?? pls help.
what can i write
¿Cuál es el resultado del siguiente código?
int x = 15; int y = 4;
int resultado = x / y;
answer is 6
Learn Playing. Play Learning
Send us a message