RosettaCodeData/Task/Exponentiation-operator/Zkl/exponentiation-operator-2.zkl

5 lines
156 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
println("2^6 = %d".fmt(pow(2,6)));
println("2^-6 = %d".fmt(pow(2,-6)));
println("2.71^6 = %f".fmt(pow(2.71,6)));
println("2.71^-6 = %f".fmt(pow(2.71,-6)));