UPSKILL MATH PLUS
Learn Mathematics through our AI based learning portal with the support of our Academic Experts!
Learn moreA conditional flowchart is used when a condition is imposed on a problem. The condition will either be true or false. The course of the problem depends on the answer to the condition.
Example:
1. A condition to check whether the train arrives on time or not.
2. A condition to check whether \(5\) is a prime number or not.
Let us try to make a conditional flowchart for the following situation.
Situation:
Check if the given number is a multiple of \(3\) or not.
We should begin with the step-by-step procedure first.
1. Input the number '\(n\)'.
2. Divide '\(n\)' be \(3\).
3. If reminder equals \(0\), print '\(n\)' is a multiple of \(3\)'.
4. If reminder does not equal to \(0\), print '\(n\)' is not a multiple of \(3\)'.
Let us now come up with a conditional flowchart for the problem: