primitive operators | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

primitive operators

how print sum of the two variables (x,y)

29th Jun 2016, 12:27 PM
Hasim
Hasim - avatar
6 Answers
+ 7
int x=3, y=4; int sum=x+y; System. out.println(sum);
30th Jun 2016, 10:47 AM
Aishwarya Patil
Aishwarya Patil - avatar
+ 3
Using a third variable- as Aishwarya said Without using a third variable- as Neeraj said. :D
30th Jun 2016, 6:55 PM
Siddharth Garg
Siddharth Garg - avatar
+ 1
true answer aiswarya patil
30th Jun 2016, 9:33 PM
Hasim
Hasim - avatar
0
int x=8 y=5 what is x%y?
16th Jul 2016, 7:06 PM
Chris “sportsmc3” Myles
Chris “sportsmc3” Myles - avatar
- 1
(xy,)
30th Jun 2016, 2:55 AM
samuel mwaura
- 2
(x+y)=2
2nd Jul 2016, 1:02 PM
palash bhattacharjee
palash bhattacharjee - avatar