+ 4
Please help! Why this programme prints 8. Thanks beforhend!
public class Program { public static void main(String[] args) { double p = Math.pow(2, 3); System.out.println(p); } } // 8
4 Antworten
+ 5
In Math.pow() , the first parameter is the base and the second is the power you want to raise it by.
+ 3
2^3 = 2 * 2 * 2 = 8
+ 3
thanks!
0
Shuniyam bilmisanmi Odil