5 תשובות
מה זה משנה פשוט תעשה כפול
שואל השאלה:
אבל אני צריך חזקה
אבל אני צריך חזקה
אנונימי
math.pow(a,b)
public class powerexample {
public static void main(string[] args) {
double base = 2;
double exponent = 3;
// calculating 2 raised to the power of 3
double result = math.pow(base, exponent);
system.out.println(base + " raised to the power of " + exponent + " is: " + result);
}
}
public static void main(string[] args) {
double base = 2;
double exponent = 3;
// calculating 2 raised to the power of 3
double result = math.pow(base, exponent);
system.out.println(base + " raised to the power of " + exponent + " is: " + result);
}
}
math.pow
באותו הנושא: