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

5 lines
156 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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)));