Algorithms for Swapping of Two Numbers
Subject: PPS (Programming for Problem Solving)
Contributed By: Sanjay
Created At: February 3, 2025
Question:
Write an Algorithms for Swapping of Two Numbers Using Temporary Variable
Explanation Video:

Explanation:
Algorithm:
Start.
Read two numbers, a and b.
Declare a temporary variable temp.
Assign temp = a.
Assign a = b.
Assign b = temp.
Print a and b.
Stop.