Algorithm for swapping of two numbers without temp
Subject: PPS (Programming for Problem Solving)
Contributed By: Sanjay
Created At: February 3, 2025
Question:
Write an Algorithm for Swapping of two numbers Without Using Temporary Variable
Explanation Video:

Explanation:
Algorithm:
Start.
Read two numbers, a and b.
Assign a = a + b.
Assign b = a - b.
Assign a = a - b.
Print a and b.
Stop.