Pregunta de entrevista de Fiserv

Swap two variables without using a third variable.

Respuesta de la entrevista

Anónimo

14 de jun de 2018

class Program { static void Main(string[] args) { int first,second ; first = 1; second = 2; first = first + second; second = first - second; first = first - second; Console.WriteLine(first.ToString()); Console.WriteLine(second.ToString()); Console.ReadLine(); } } }