Basic Java Language: Difference between revisions
| Line 123: | Line 123: | ||
a = a-b/c*d; | a = a-b/c*d; | ||
</pre> | </pre> | ||
You would then use the order or operations, otherwise known as PEMDAS, to find the result of "a"; which would be: | |||
<pre> | <pre> | ||
a = a - (b/c)d | a = a - (b/c)d | ||