Computer Science – 11.1 Programming Basics | e-Consult
11.1 Programming Basics (1 questions)
Login to see all questions.
Click on a question to view the answer
Answer 3
Pseudo-code:
- START
- Input number 1, num1
- Input number 2, num2
- Input number 3, num3
- If num1 > num2 and num1 > num3, then:
- Largest = num1
- Else if num2 > num1 and num2 > num3, then:
- Largest = num2
- Else:
- Largest = num3
- Output Largest
- END
Explanation: The pseudo-code implements the flowchart's logic using nested 'if' statements. It compares each number to the other two to determine the largest. The 'Largest' variable stores the result of these comparisons. The nested 'if' structure accurately represents the flowchart's decision points.