diff options
Diffstat (limited to 'test/pending/shootout/harmonic.scala-3.scala')
-rw-r--r-- | test/pending/shootout/harmonic.scala-3.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/pending/shootout/harmonic.scala-3.scala b/test/pending/shootout/harmonic.scala-3.scala deleted file mode 100644 index dc631fcf12..0000000000 --- a/test/pending/shootout/harmonic.scala-3.scala +++ /dev/null @@ -1,15 +0,0 @@ -/* The Computer Language Shootout - http://shootout.alioth.debian.org/ - contributed by Isaac Gouy (Scala novice) -*/ - -object harmonic { - def main(args: Array[String]) = { - val n = Integer.parseInt(args(0)); - var partialSum = 0.0; - var i = 1; - - while (i < n){ partialSum = partialSum + 1.0/i; i = i + 1; } - Console.printf("{0,number,#.000000000}\n", partialSum); - } -} |