Ask two number and swap their values in python
Answers
Answered by
0
Answer:
Brainliest Please
Explanation:
a = int(input())
b = int(input())
a,b=b,a
print(a\nb)
Answered by
0
a = input('Enter First Number: ')
b = input('Enter Second Number: ')
print("Value of a before swapping: ", a)
print("Value of b before swapping: ", b)
c = a
a = b
b = c
print("Value of a after swapping: ", a)
print("Value of b after swapping: ", b)
Similar questions
Geography,
4 months ago
Computer Science,
4 months ago
Computer Science,
4 months ago
Math,
9 months ago
Math,
9 months ago