0

How to add value in int of java

1st Dec 2019, 12:15 PM
Rouyas
Rouyas - avatar
2 Réponses
+ 4
Rouyas Before ask anything first learn about that. I saw your activity you just started to learn Java. Please first complete the course here and do practice then if you are getting any problem simply ask here.
1st Dec 2019, 12:59 PM
A͢J
A͢J - avatar
+ 1
To add the values in int type you just need to use the addition operator (+). int a =10, b = 20,c; c=a+b; Then you can use the value of c for further processing.
1st Dec 2019, 12:23 PM
Siva
Siva - avatar