Computer Science, asked by varsharav32, 2 months ago

Write a program in python that performs swapping operations between two numbers.​

Answers

Answered by choudharykashish12
1

Answer:

# Python swap program. x = input('Enter value of x: ') y = input('Enter value of y: ') # create a temporary variable and swap the values.

...

Variable swapping:

data_item x := 1.

data_item y := 0.

swap (x, y)

Similar questions