Computer Science, asked by sahilabdagiri746, 1 month ago

write a java explanation for the following 9x2+5y+z​

Answers

Answered by ArchBTW
0

Answer:

So first 9*x*2 would be solved then 5*y

then 9*x*2 would be added to 5*y which would be further added to

Explanation:

Java and most programming language have a precedence order. So usually brackets are solved first, then division/multiplication and then addition/subtraction. If sign are same, the precedence start from left to right

So first 9*x*2 would be solved then 5*y

then 9*x*2 would be added to 5*y which would be further added to z

Similar questions