Computer Applications
Write the Java statement for the following mathematical expression
Java Math Lib Methods
6 Likes
Answer
p = a / Math.pow(b,2) + b / Math.pow(a, 2);
Answered By
6 Likes
Related Questions
Write the values of r and s after the execution of the following code.
int p = 11, q = 21, r, s; r = ++q; s = p++; r++;Observe the following code and find that how many times will the loop execute?
int sum = 0, score = 0; double t; do { score = score + 1; sum = sum + score; } while(score <= 3); t = sum / 3;If a = 8, find the value of a -= ++a + a++ + 4 - a + 6.
Rewrite the following code using for loop.
int i = 1; int d = 5; do { d = d * 2; System.out.println(d); i++; } while(i <= 5);