Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java math power

// double Math.pow(double base, double exponent)
double twoCubed = Math.pow(2, 3); 
System.out.println("Two raised to third power: " + twoCubed); // 8.0
 
PREVIOUS NEXT
Tagged: #java #math #power
ADD COMMENT
Topic
Name
6+7 =