fork download
  1. using System;
  2. class Example
  3. {
  4. public int func(int k)
  5. {
  6. k = 20;
  7. return k;
  8. }
  9. public Single func(float t)
  10. {
  11. t = 3.4f;
  12. return t;
  13. }
  14. }
  15. class Program
  16. {
  17. static void Main(string[] args)
  18. {
  19. Example obj = new Example();
  20. int i;
  21. i = obj.func(30);
  22. Console.WriteLine(i);
  23. Single j;
  24. j = obj.func(2.5f);
  25. Console.WriteLine(j);
  26. Console.ReadLine();
  27. }
  28. }
  29.  
Success #stdin #stdout 0.02s 28572KB
stdin
Standard input is empty
stdout
20
3.4