[runtime] Synthesize IList and IReadOnlyList for the element type of enum errays...
[mono.git] / mono / tests / ackermann.cs
index 95d331c48d14242bdbded09b6878afc8722c8b1d..607f91aae253b03ada0bf6ff38b6c1d308219a13 100644 (file)
@@ -1,12 +1,15 @@
-// $Id: ackermann.cs,v 1.2 2001/11/19 07:11:32 lupus Exp $
+// $Id$
 // http://www.bagley.org/~doug/shootout/
 
 public class ackermann {
 
-    public static int Main() {
+    public static int Main(string[] args) {
        int NUM = 8;
-       return Ack(3, NUM) != 2045? 1: 0;
-       //System.out.print("Ack(3," + NUM + "): " + Ack(3, NUM) + "\n");
+       if (args.Length > 0)
+               NUM = System.Int32.Parse (args [0]);
+       //return Ack(3, NUM) != 2045? 1: 0;
+       System.Console.WriteLine("Ack(3," + NUM + "): " + Ack(3, NUM));
+       return 0;
     }
 
     public static int Ack(int M, int N) {