5 תשובות
מה זה משנה פשוט תעשה כפול
שואל השאלה:
אבל אני צריך חזקה
אנונימי
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);
}
}