fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string str = "2001";
  8. if (Char.IsDigit(str[0]))
  9. {
  10. Console.WriteLine ("Positive digit");
  11. }
  12. else
  13. {
  14. Console.WriteLine ("Not digit");
  15. }
  16. }
  17. }
Success #stdin #stdout 0.02s 33832KB
stdin
Standard input is empty
stdout
Positive digit