Computer Science, asked by singhr18941, 12 hours ago

write a program to swap the value of two variables​

Answers

Answered by cheemtu
1

Im assuming that you're talking about Python language. If yes, then here's the answer!

#program made by @thefactnation (me)

var1 = 25

var2 = 10

swap_var = var1 , var2 = var2 , var1

Now, you can use either normal variables or swapped variable. Hope it helped!

PLS MARK BRAINLIEST

Similar questions