0
How to add value in int of java
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.
+ 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.