Computer Science, asked by Blockhead5562, 7 months ago

Write the java expresion for p=a2+b2=2ab

Answers

Answered by shrutikatidankar90
1

Answer:

A Java expression consists of variables, operators, literals, and method calls. To know more about method calls, visit Java methods. For example,

int score;

score = 90;

Here, score = 90 is an expression that returns an int. Consider another example,

Double a = 2.2, b = 3.4, result;

result = a + b - 3.4;

Here, a + b - 3.4 is an expression.

if (number1 == number2)

System.out.println("Number 1 is larger than number 2");

Here, number1 == number2 is an expression that returns a boolean value. Similarly, "Number 1 is larger than number 2" is a string expression.

Explanation:

plz make me as brainliest

Similar questions