what are conditionally statements? name some of them
Answers
Answer:
Conditional Statements : if, else, switch
If statement.
If-Else statement.
Nested If-else statement.
If-Else If ladder.
Switch statement.
QUESTION
What are conditionalstatements? Name some of them?
ANS - Alternatively reffered to as conditional expression and conditional processing a conditional statement is a set of rule performed in a certain condition is met. It is sometimes reffered to as an if - Then statement , because IF a condition is met Than an action is performed.Conditional statement are part of every day lives. As people we can think about situation and make decesion based on what we observe or know to be true
POINTS TO REMEMBER
- First you'll get a quick over view of the if statement in simpler form. Next using the if statement as a model you'll see why control structure require some mechanism for grouping statement together into compound statement block.
- Sign of locally connector conditional statement pronoun as p implies q. The state P ➡️ Q is false if the P is true and Q is false.
MORE TO KNOW
We have a conditional statement if it raining , we will not play. Let A, it is raining and B will not play then. If A is true that it is raining and B is false that is we played than the statement A implies B is false. If A is false that it is not raining and B is true that is we did not played still the statement is true.A is neccessary condition for B but is not sufficient.