write pyton program to swag two number to a 3rd variable
Answers
Answered by
1
"""
Project Type: Brainly Answer
Date Created: 11-02-2021
Date Edited Last Time: ---NIL---
Question Link: https://brainly.in/question/35010410
Question: Write python program to swap two numbers using a third variable.
Program Created By: atrs7391
Programming Language: Python
Language version (When program created or last edited): Python 3.9.1
"""
A = int(input("Enter First number: "))
B = int(input("Enter Second Number: "))
print("Value of A before Swapping: ", A)
print("Value of B before Swapping: ", B)
C = B
B = A
A = C
# swapping values using third variable
print("Value of A after Swapping: ", A)
print("Value of B after Swapping: ", B)
Similar questions