Skip to content
exKAZUu edited this page Mar 18, 2012 · 1 revision

Foreach

C#

class Main {
    public static void Main(String[] args) {
        foreach (var name in args) {
            Console.WriteLine("Hello, " + name);
        }
    }
}

Tane

def main(args : Array[String])
  for (name in args)
    print("Hello, " + name)
Clone this wiki locally