Computer Science, asked by pradip0411mahato, 8 days ago

write the java expression for i) a^2+b^2/2ab and ii) a+b/a-b​

Answers

Answered by saikrishnaloya
0

Answer:

Expressions perform the work of a Java program. Definition: An expression is a series of variables, operators, and method calls (constructed according to the syntax of the language) that evaluates to a single value. ..

Expressions in Java are used to fetch, compute, and store values. ... The evaluation of an expression can also produce side effects, such as variable assignments and increment and decrement operations. The value produced by an expression can be either a pure value or a variable or array element.

Which is an expression?

An expression is a number, a variable, or a combination of numbers and variables and operation symbols. An equation is made up of two expressions connected by an equal sign.

An expression is a combination of one or more operands, zero or more operators, and zero or more pairs of parentheses. There are three kinds of expressions: An arithmetic expression evaluates to a single arithmetic value. ... A logical or relational expression evaluates to a single logical value.

Explanation:

Similar questions