Advertisements
Advertisements
Question
Write down java expression for:
`"T" = sqrt("A"^2 + "B"^2 + "C"^2)`
Short/Brief Note
Advertisements
Solution
T = Math.sqrt (A*A + B*B + C*C);
shaalaa.com
Introduction of Operators in Java
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Write a difference between unary and binary operator.
What are the various types of errors in Java?
What is meant by a package?
Name the operators listed below are
(i) <
(ii) + +
(iii) &&
(iv) ? :
Write one difference between / and % operator.
Write a Java expression for the following :
ax5 + bx3 + c
State the difference between == operator and equals () method.
Rewrite the following using ternary operator:
if (x%2 == o)
System.out.print(“EVEN”);
else
System.out.print(“ODD”);
The code obtained after compilation is known as ______.
Write the Java expression for (a + b)x.
