Practice
Greet By Name Procedure
EASYProcedures & Functions4 marks
Write procedure Greet(Name) that outputs Hello, <Name>!. The main program reads a name and calls the procedure.
Input: One name. Output: The greeting line.
Example:
Input: Maya
Output: Hello, Maya!
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Typical name
Inputs: Maya
Expected: Hello, Maya!
Test 2: Another name
Inputs: Omar
Expected: Hello, Omar!