int b = 4, p = 5, r = 2, v = 8;
double x;
Write the JAVA statement to perform the following: Assign x the value of p multiplied by v - 6 all divided by the square root of the sum of b and p
// TestCode.java public class TestCode { public static void main(String args[]) { int b = 4, p = 5, r = 2, v = 8; double x; // Assign x the value of p multiplied by v - 6 all divided by the square root of the sum of b and p x = (p*(v-6))/(Math.sqrt(b+p)); System.out.println(x); } }
3.3333333333333335
x = (p*(v-6))/(Math.sqrt(b+p));
Get Answers For Free
Most questions answered within 1 hours.