fork(9) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int a = 5;
  8. int b = 10;
  9.  
  10. Console.WriteLine("a={0}, b={1}", a, b);
  11. (a, b) = (b, a);
  12. Console.WriteLine("a={0}, b={1}", a, b);
  13. }
  14. }
  15.  
Success #stdin #stdout 0.02s 16004KB
stdin
Standard input is empty
stdout
a=5, b=10
a=10, b=10