what is a compound statement? give an example .
Java bluej
Answers
Answer:
statements are connected by more than one operators, like, and, or, not etc then it is called a compound statement. If a table contains more than one statement and representing true value, then it is called truth table. In compound statement, there are different rule for Conjunction, Disjunction and Negation. Also, there are different symbols for all these things. In this page, we will explain all the truth table below, so that student can understand easily. An expression which contains more than one operators in it is called a compound statement.
Rule for Solving Compound Statement:
First solve the operations inside the parenthesis, then work on others. We will see the basic operators.
Disjunction:
The disjunction of a compound statement is only false if both the combining statements are false, else the disjunction is true. Disjunction is represented by the symbol " V " read as "or".
Conjunction:
The Conjunction of a compound statement is only True if both the combining statements are true. Else, the Conjunction is false. Conjunction is represented by the symbol " ^ " read as "and".
Negation:
The Negation of a compound statement is always opposite of given statement. If statement is false, then its negation will be false and vice verse. Negation is represented by ¬ and read as "not".
Explanation:
Answer:
Here's the answer below!!!✌️
Explanation:
A compound statement is a statement which results from the application of one or more logical connectives to a collection of simple statements.
Example:-For example, “It is snowing, and I wish that I were out of doors, but I made the mistake of signing up for this course,” is a compound statement
hope so, this answer will help uhh,
Take care✌️