Java Program to Add Two Integers
mrt481 487 28th Aug, 2022
Java
0.35 KB
Loading Please wait...
Description
In this program, two integers 10 and 20 are stored in integer variables first and second respectively. Then, first and second are added using the + operator, and its result is stored in another variable sum. Finally, sum is printed on the screen using println() function.
Recent Pastes
- Attributes used in different HTML elements:
Markup | 731 | 1 month ago
- C++ Program to Add Two Numbers
C++ | 7.2K | 1 year ago
- C++ Program to Print Number Entered by User
C++ | 4.4K | 1 year ago