Merge pull request #3387 from xmcclure/test-suite-bump
[mono.git] / mono / tests / ackermann.cs
index 79748a9beb91223fc080f8b5249e79433f2cbfe4..607f91aae253b03ada0bf6ff38b6c1d308219a13 100644 (file)
@@ -1,13 +1,15 @@
-// $Id: ackermann.cs,v 1.1 2001/11/19 06:52:53 lupus Exp $
+// $Id$
 // http://www.bagley.org/~doug/shootout/
 
 public class ackermann {
 
-    public static void Main() {
+    public static int Main(string[] args) {
        int NUM = 8;
-       Ack(3, NUM);
-       return;
-       //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) {