fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int factor = 2;
  8.  
  9. Func<int,int> multiplier = (n) => n * factor;
  10.  
  11. factor = 10;
  12.  
  13. Console.WriteLine (multiplier(3));
  14. }
  15. }
Success #stdin #stdout 0.03s 33912KB
stdin
Standard input is empty
stdout
30