#!/usr/bin/env python
# coding: utf-8

# In[2]:


#Swap 2 variables


# In[13]:


x=int(input('Enter the value of x:'))
y=int(input('Enter the value of y:'))

temp=x
x=y
y=temp

print('The swap value of x:',x)
print('The swap value of y:',y)


# In[ ]:





# In[14]:


#swap 3 variables


# In[12]:


x=int(input('Enter the value of x:'))
y=int(input('Enter the value of y:'))
z=int(input('Enter the value of z:'))

temp1=x
temp2=z
x=y
z=temp1
x=temp2

print('The swap value of x:',x)
print('The swap value of y:',y)
print('The swap value of z:',z)

