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
Hindi,
6 hours ago
Math,
6 hours ago
Computer Science,
12 hours ago
Chemistry,
12 hours ago
Math,
8 months ago