fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. class maths
  6. {
  7. public int fun(int k, int y)
  8. {
  9. return k + y;
  10. }
  11. public int fun1(int t, float z)
  12. {
  13. return (t+(int)z);
  14. }
  15. }
  16. class Program
  17. {
  18. static void Main(string[] args)
  19. {
  20. maths obj = new maths();
  21. int i;
  22. int b = 90;
  23. int c = 100;
  24. int d = 12;
  25. float l = 14.78f;
  26. i = obj.fun(b, c);
  27. Console.WriteLine(i);
  28. int j = (obj.fun1(d, l));
  29. Console.WriteLine(j);
  30. Console.WriteLine((int)l);
  31. Console.ReadLine();
  32. }
  33. }
  34.  
  35. }
Success #stdin #stdout 0.03s 26276KB
stdin
Standard input is empty
stdout
190
26
14