fork(1) download
  1.  
  2.  
  3. using System;
  4.  
  5. class Program {
  6. static void Main(string[] args) {
  7.  
  8. // ==여기에 값 입력==
  9. // 정수입력은 그냥 적으면 되고,
  10. // 실수입력은 뒤에 f 붙이면 됨
  11. DivideInt(0, -1);
  12. DivideDouble(1, 2.5);
  13.  
  14. }
  15.  
  16. static void DivideInt(int _a, int _b)
  17. {
  18. Console.WriteLine($"정수 ver: {_a}/{_b} = {_a/_b}");
  19. }
  20. static void DivideDouble(double _a, double _b)
  21. {
  22. Console.WriteLine($"실수 ver: {_a}/{_b} = {_a/_b}");
  23. }
  24. }
Success #stdin #stdout 0.02s 16568KB
stdin
Standard input is empty
stdout
정수 ver: 0/-1 = 0
실수 ver: 1/2.5 = 0.4