fork download
  1. using static System.Console;
  2. using System.Collections.Generic;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. string[] temp = ReadLine().Split(new char[] { ' ' });
  7. var maior = new List<double> {
  8. double.TryParse(temp[0], out var valido) ? valido : 0,
  9. double.TryParse(temp[1], out valido) ? valido : 0,
  10. double.TryParse(temp[2], out valido) ? valido : 0
  11. };
  12. maior.Sort();
  13. WriteLine($"{maior[2]} eh o maior");
  14. }
  15. }
  16.  
  17. //https://pt.stackoverflow.com/q/312752/101
Runtime error #stdin #stdout #stderr 0.02s 15800KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Program.Main () [0x00005] in <3b8f65a85c764b51bc6dec4f15178aec>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at Program.Main () [0x00005] in <3b8f65a85c764b51bc6dec4f15178aec>:0