+ 1

Getting problem to print the sum of two variables , x=2 and y=4

problem in adding two variables

24th May 2017, 6:00 AM
anshuman gupta
anshuman gupta - avatar
2 Answers
+ 4
Declare: int x= 2; int y=4; System.out.Println(x+y); //This sums up 2+4 Your output should be 6.
24th May 2017, 6:19 AM
Eremie Gillowei
Eremie Gillowei - avatar
0
24th May 2017, 6:17 AM
Otto Lindén