This is a form-based problem — open it in the Form Designer, not the code judge. Two edit boxes (edtA and edtB) hold two numbers; a combo box (cmbOperator) lets the user pick +, -, * or /. A button (btnCalculate) and a label (lblResult) are already on the form. Write btnCalculate's OnClick handler so that it applies whichever operator is selected to the two numbers and shows the result on lblResult.
No input/output in the console sense. Grading sets edtA.Text, edtB.Text and cmbOperator's selection, clicks btnCalculate once, then checks lblResult.Caption. Format: the result rounded to two decimal places. Examples: A = 10, B = 4 -> '*' gives '40.00', '/' gives '2.50'.
7 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