0% found this document useful (0 votes)
14 views2 pages

Java Number Swapping Without Variable

This document describes a programming exercise to swap the values of two variables without using a third variable. The program takes input values for two numbers, swaps their values using arithmetic operations, and prints the output showing the swapped values. The result demonstrates that swapping two numbers without a third variable was successful.

Uploaded by

Jasvinder kour
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Java Number Swapping Without Variable

This document describes a programming exercise to swap the values of two variables without using a third variable. The program takes input values for two numbers, swaps their values using arithmetic operations, and prints the output showing the swapped values. The result demonstrates that swapping two numbers without a third variable was successful.

Uploaded by

Jasvinder kour
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ROLL NO 9043/18

DATE: 07-04-2020

PRACTICALS : 9

AIM: SWAPPING OF TWO NUMBER WITHOUT USING THIRD VARIABLE.

PROGRAM:

INPUT:

OUTPUT:

RESULT: hence,swapping of two number without using third number


successfully and printed by using java.

You might also like