Computer Science, asked by arorasonia234, 5 months ago

Write Java expression for the following : | 3x + 7y |​

Answers

Answered by BrainlyProgrammer
1

Answer:

\huge\star\underbrace{\mathtt\red{⫷QúÊßTïØñ⫸}}\star

  • Java expression for | 3x + 7y |

\huge\star\underbrace{\mathtt\red{⫷❥ᴀ᭄} \mathtt\green{n~ }\mathtt\blue{ §} \mathtt\purple{₩}\mathtt\orange{Σ} \mathtt\pink{R⫸}}\star

  • Math.abs((3*x)+(7*y))
Answered by anindyaadhikari13
2

Question:-

➡ Write the Java expression for the following, |3x + 7y|

Solution:-

The Java expression for |3x + 7y| will be,

Math.abs(3*x + 7*y);

➡Math.abs() function is used to display the absolute value of any number.

➡ *(asterisk) operator is used for calculating the product.

➡ +(addition) operator is used for calculating the sum as well as to concatenate two strings.

Similar questions