Finding Nemo

Run Settings
LanguageC#
Language Version
Run Command
using System; using System.Collections.Generic; using System.Linq; class MainClass { static void Main() { //Console.WriteLine("Hello World!"); string[] nemo = new string[] { "nemo1", "nimo" }; Console.WriteLine(FindingNemo(nemo, "nemo1")); } static string FindingNemo(string[] inputArray, string toFind){ string result = string.Empty; for(int i = 0; i < inputArray.Length; i++) { if(inputArray[i] == toFind) { result = "Found " + toFind; } else { result = "Better luck next time!"; } } return result; } }
Editor Settings
Theme
Key bindings
Full width
Lines