Practice
Receipt Line
EASYString Processing3 marks
Read an item name and an integer price. Output one line, Name: price.
The colon and the space are part of the text. A comma between OUTPUT items does not insert a space.
Input: A string, then an integer.
Output: Pencil: 3 for those inputs.
Example:
Input: Pencil
3
Output: Pencil: 3
Sample Test Cases
Test 1: Name and price
Inputs: Pencil, 3
Expected: Pencil: 3
Test 2: Two-digit price
Inputs: Notebook, 12
Expected: Notebook: 12