X=5 Y=6 # to swap X and Y, introduce a temporary variable Z Z=X X=Y Y=Z