CSEC Information Technology · May/June 2018 · Paper 1 · Question Q51
Item 51 refers to the following algorithm. Read (A, B) If A<B Then Print(A); Which of the following tasks does the following algorithm perform?
- (A)Reads two numbers and prints the first number
- (B)Reads two numbers and prints the smaller number
- (C)Reads two numbers and prints the first number if it is larger than the second number
- (D)Reads two numbers and prints the first number if it is smaller than the second number
The answer is shown once you've answered.
Practise this question