using System;
using System.Diagnostics;
class MainClass {
static string[] everyone = {"dory", "bruce", "marlin", "nemo", "gill",
"bloat", "nigel", "squirt", "darla", "hank"};
static void Main() {
MainClass.findNemo(everyone);
MainClass.findNemo2(everyone);
}
public static void findNemo(string[] array) {
for (int i = 0; i < array.Length; i++) {
if (array[i] == "nemo") {
Console.WriteLine("Found NEMO!");
}
}
}
public static void findNemo2(string[] array) {
foreach (string s in array) {
if (s == "nemo") {
Console.WriteLine("Found NEMO!");
}
}
}
}