This is a form-based problem — open it in the Form Designer, not the code judge. An edit box (edtPosition) holds a marathon finisher's placing; a button (btnMarathon) and a label (lblResult) are already on the form. Write btnMarathon's OnClick handler using a case statement so that it shows the right award message for that placing on lblResult.
No input/output in the console sense. Grading sets edtPosition.Text, clicks btnMarathon once, then checks lblResult.Caption. Position 1 -> 'You receive a gold medal.' Position 2 or 3 -> 'You receive a silver medal.' Position 4 to 20 -> 'You receive a bronze medal.' Position 21 or later -> 'You receive a participation certificate.' Examples: 1 -> 'You receive a gold medal.' 20 -> 'You receive a bronze medal.' 21 -> 'You receive a participation certificate.'
4 components · drag to move, corner handle to resize, Delete to remove
Object Inspector
Select a component on the form to edit its properties.
Palette
Pick a component, then click the form
Standard
Additional
Data
Non-visual