Create a full name

Report a typo

In the code template below, you can see a program that creates a full name from the first and last names of several people. Wouldn't it be much easier if we had a function that could do the same?

Your task is to create a function createFullName that takes firstName as the first argument and lastName as the second argument and returns the full name.

You don't need to implement the main function. Just complete the function template provided to you. Also, don't print anything in your function.

Sample Input 1:

John
Lennon

Sample Output 1:

John Lennon
Write a program in Kotlin
// implement your function here
fun createFullName...
___

Create a free account to access the full topic