Practice

Complete the Flowchart: Larger Number

EASYFlowcharts
Complete the flowchart — fill in the dashed boxes. Checking turns it into pseudocode and runs the tests below.

The flowchart inputs two numbers, A and B, and should output the larger one.

Two boxes are blank. Fill them in so the flowchart works. If the numbers are equal, output either.

Sample Test Cases

Test 1: A larger
Inputs: 8, 3
Expected: 8
Test 2: B larger
Inputs: 2, 9
Expected: 9