Zero to the zero power: Difference between revisions

Content added Content deleted
No edit summary
m (→‎{{header|Kotlin}}: Made the kotlin example not use Java.)
Line 810: Line 810:


=={{header|Kotlin}}==
=={{header|Kotlin}}==
<syntaxhighlight lang="scala">// version 1.0.6
<syntaxhighlight lang="kotlin">import kotlin.math.pow


fun main(args: Array<String>) {
fun main() {
println("0 ^ 0 = ${Math.pow(0.0, 0.0)}")
println(0.0.pow(0))
}</syntaxhighlight>
}</syntaxhighlight>


{{out}}
{{out}}
<pre>
<pre>
0 ^ 0 = 1.0
1.0
</pre>
</pre>