Graderpractice for programmers

Back to 273387 Swift - Functions

Greet and meet

Problem

Write a function which takes 1 String parameter and returns "Pleased to meet you X." where X is the parameter value. If the value of the parameter is "" (empty string) then return "I do not know you.".

Use the following code as a template:

// TODO: write your greetAndMeet function here

let input = readLine() ?? ""
let output = greetAndMeet(name: input)
print(output)

Examples

Input

Jon Snow

Output

Pleased to meet you Jon Snow.

Submit your solution

swift