If x = y, then z.
The letters can be anything. Either the statement is true or it is false, or inconclusive.
If dogs are mammals, then pit-bulls are mammals. True.
If Maria is Spanish, then George is not. Inconclusive.
If Hamburgers are meat, then hamburgers are vegetables. False.
If hamburgers are meat, and meat makes you sick, then hamburgers make you sick. True.
If cows make milk and goats make milk, then goats are cows.
We all know this is false, but the reason is because of the way the two statements relate to eachother.
2006-10-06 10:38:14
·
answer #1
·
answered by amber ɹəqɯɐ 4
·
0⤊
0⤋
Conditional statements deal with whether or not a condition is true, and what to do if it is true, what to do if it is false.
Example: if (x > 5) { Do What Is Listed Here if x>5 }
else { Do what is listed here if x < 5 or x = 5 }
Example: To say "if x is greater than 5, add 2, if x is less than or equal to 5, subtract 2", you would say:
if (x > 5) { x + 2 } else { x - 2 }
Example: To say "if y is less than 40, add 3, if y is more than or equal to 40, add 6", you would say:
if (y < 40) { y + 3 } else { y + 6 }
Please Note: This is the format used when making computer programs. I am terrible at math, so it may be written differently in Math terms.
Hope this helps :)
2006-10-06 10:45:06
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
Conditional statements use the words "if" or "when" such as:
1. If you don't do your homework you're going to be sorry.
2. I would like her better if she were rich.
3. If he doesn't marry me I'm going to leave him.
4. You may have a piece of cake when you finish your dinner.
5. She will be happy when she quits that job.
One thing will only occur on the condition that the other thing occurs - it depends on that particular condition, situation or circumstance.
2006-10-06 14:21:56
·
answer #3
·
answered by Bethany 6
·
0⤊
0⤋
fake: If a quadrilateral is a sq. , then if has 4 suited angles. genuine If a quadrilateral has 4 suited angles, then that's a sq.. fake through undeniable fact that's a rectangle yet does not inevitably have 4 equivalent aspects. no longer q -> no longer p
2016-12-08 09:44:37
·
answer #4
·
answered by ? 4
·
0⤊
0⤋