This is a form-based problem — open it in the Form Designer, not the code judge. An edit box (edtYear) holds a year; a button (btnCheck) and a label (lblResult) are already on the form. Write btnCheck's OnClick handler so that it works out whether the year is a leap year and shows the result on lblResult.
No input/output in the console sense. Grading sets edtYear.Text, clicks btnCheck once, then checks lblResult.Caption. A year is a leap year if it's divisible by 4, unless it's also divisible by 100 — except that a year divisible by 400 is a leap year after all. Format: '<year> is a leap year' or '<year> is not a leap year'. Examples: 2024 -> '2024 is a leap year' 1900 -> '1900 is not a leap year' (divisible by 100, but not 400)
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