fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static int fun(ref int a)
  6. {
  7. a = 17;
  8. return 3;
  9. }
  10. static void Main(string[] args)
  11. {
  12. int a=1;
  13. int x = a + fun(ref a) * a;
  14. Console.WriteLine(x);
  15. a=2;
  16. x = a + fun(ref a);
  17. Console.WriteLine(x);
  18. }
  19.  
  20. }
Success #stdin #stdout 0s 29664KB
stdin
Standard input is empty
stdout
52
5