Print sum of a Two Integers in JAVA !



What does it mean to print the sum of two integers?
It means that two variables are to be added and then printed. This can be seen in the following code of java.

In the code above you can see that two integer variables by the name "first_value" and "second_value" were created, which then were added and stored into another variable named "sum".
"sum" variable is printed using the "println" function.

The result of the above program in java is shown below





Post a Comment

Previous Post Next Post