+ 3
Sum
x y int
10 Answers
+ 33
Inside main:
int x = 1;
int y = 1;
int sum = x + y;
System.out.println(sum);
or
System.out.println(x+y);
+ 5
int z=x+y;đđ
+ 3
both statement are valid......
in sop you have to add variables until any string doesn't appear. once string appear in sop then variables value are concatenated
e.g
int x,y=10;
sop(x+y+" hello "+x+y);
result will be like
20 hello 10 10
+ 1
It seems that is your very first code? :)
+ 1
int sum?
+ 1
int x=1, y=1, sum;
sum = x + y;
System.out.println(sum);
+ 1
int x1=20;
int x2=x1+25;
system.out.println(x2);
0
2
0
đ
0
i think so you are good this is how it work