You can think of x && y || z as equivalent to: int func (int x, int y, int z) { if (x) { if (y) { return true; } } if (z) { return true; } return false; } Since both x and y are fixed to be non-zero values the first return statement is always hit. thats what i think
<span>So we want to know how much does the pencil costs if the ruler costs 1$ more than the pencil and together they cost 1.5$. So lets start with converting dollars into cents. Lets turn this into an equation. Ruler is x and the pencil is y. So together ruler and pencil cost 150cents or: x+y=150 cents. The ruler costs 100 cents more than the pencil, or: (x+100 cents ) + y = 150 cents. So we see that we need to put the values of x=25 cents and y=25 cents to get the ruler to cost 125 cents which is 100 cents or 1$ more than the pencil. So the pencil costs 25 cents. </span>
First you would follow the Order Of Operations:
Parenthesis
Exponent
Multiplication
Division
Addition
Subtraction
Second step: You will add 6 and 4 together since addition came before subtraction in the Order Of Operations.You would get 10.
Your equation should now look like: 13-10.
Last step: You would subtract 10 from 13 since there are no other numbers
Your answer should then be: 3
HOPE THIS HELPS! ^_^
Answer:
Step-by-step explanation:
Remark
Choose any number at all and see what happens.
Suppose x = 8
3*(8 + 1) = 3*8 + 3
3(9) = 27
3*8 + 3 = 24 + 3 = 27
What you have shown is that the second choice is incorrect. There is at least one value that makes the equation correct (that is, both sides come to the same result.)
If choice two is false then choice one must be true since these results may give the only 2 possible results.