We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66f9f94 commit 035bf03Copy full SHA for 035bf03
src/scala/Exponentiation.scala
@@ -3,7 +3,7 @@ def exponentiation(base: Int, exponent: Int): Int = {
3
.map(_ => base)
4
.reduce(_ * _)
5
}
6
-
+
7
object Main extends App {
8
println("5 ^ 3 = " + exponentiation(5, 3))
9
-}
+}
0 commit comments