Print Username

Report a typo

Imagine you are writing a function greetings() that greets every new user on a hacker forum. It should return Hello, NAME!, where NAME is the username. But since it's a forum for hackers, a user can select an option to hide their username during registration. In this situation, the function should return Hello, secret user! To do this, you need to call the function greetings without arguments.

Complete the function greetings().

Write a program in Kotlin
// complete this function
fun greetings(): String
___

Create a free account to access the full topic