In this program user is asked to enter two integers and the sum operation is performed.

Source code:

Output:

C:\Users\Desktop\new>javac  Add.javaC:\Users\Desktop\new>java Add

*** www.programmingposts.com ***

<< Addition of two numbers without using Third Variable >>

Enter first number to be added:
9
Enter Second number to be added:
6
The sum of two numbers is 15

Screenshot of output:

Screenshot of output

Leave a Reply

Your email address will not be published. Required fields are marked *