fork(6) download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape" };
  9. string fruit = "mango";
  10. bool hasMango = fruits.Contains(fruit);
  11. Console.WriteLine(hasMango);
  12. }
  13. }
Success #stdin #stdout 0.02s 33848KB
stdin
Standard input is empty
stdout
True