fork(5) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. foreach (string s in new[] {"123456","456789","345678","123467","901234"}) {
  8. bool res = "0123456789".Contains(s);
  9. Console.WriteLine("{0} : {1}", s, res);
  10. }
  11. }
  12. }
Success #stdin #stdout 0.05s 33976KB
stdin
Standard input is empty
stdout
123456 : True
456789 : True
345678 : True
123467 : False
901234 : False