fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. Console.WriteLine("Please input key number");
  9. string inputkey = Console.ReadLine();
  10. string endinput = Console.ReadLine();
  11. int key= 0, end=0;
  12. Int32.TryParse(inputkey, out key);
  13. Int32.TryParse(endinput, out end);
  14. Console.WriteLine("key={0}, end={1}", key, end);
  15. Console.Read();
  16. }
  17. }
Success #stdin #stdout 0.01s 131648KB
stdin
Standard input is empty
stdout
Please input key number
key=0, end=0