fork download
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. int x; int y ; int z;
  8. Int32.TryParse(" 123", out x);
  9. Int32.TryParse("123hello", out y);
  10. Int32.TryParse("hello", out z);
  11.  
  12. Console.WriteLine("Converted to {0} {1} {2}", x, y, z); // Converted to -3
  13.  
  14. }
  15. }
Success #stdin #stdout 0.04s 33944KB
stdin
Standard input is empty
stdout
Converted to 123 0 0