0
How print a sum of two numbers
int x=2,y=4; int result = x + y; System.out.println(?);
3 Réponses
+ 4
System.out.println(result);
+ 2
You have three variables:
int x = 2;
int y = 4;
int result = x + y //2 + 4 = 6
System.out.println(result);
//output: 6
+ 2
System.out.println(result);