What will the output show after executing the task?
A. 62
B. 34
C. 42
D. 28
Answer: (B)
According to the given flowchart,
If we multiply 8 from input(6) we get 48 which is called the result.
There are two possibilities for the result,
If the result(48) is greater than 40 then subtract 14.
If the result(48) is less than 40 then add 14.
Therefore, the result is greater than 40 so the result is 34.