write a program to swap the value of two variables
Answers
Answered by
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
English,
2 months ago
Chemistry,
2 months ago
Computer Science,
2 months ago
Chemistry,
2 months ago
Math,
11 months ago