Computer Science, asked by jassarora2424, 9 months ago

Ask two number and swap their values in python​

Answers

Answered by BLANKBABA
0

Answer:

Brainliest Please

Explanation:

a = int(input())

b = int(input())

a,b=b,a

print(a\nb)

Answered by atrs7391
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