Practice

Complete the Flowchart: Countdown

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

The flowchart inputs a whole number N and counts down to 1, then outputs Go!.

Fill in the blank decision and the blank process box.

Input: one integer N. Output: N, N − 1, … 1 on separate lines, then Go!.

Sample Test Cases

Test 1: From 3
Inputs: 3
Expected: 3 2 1 Go!
Test 2: From 1
Inputs: 1
Expected: 1 Go!