Write a doc comment

Report a typo

Here is simple code with uncomment text. As a result, the code does not compile. Comment some lines to make it compile.

Sample Input 1:


Sample Output 1:

Hi!Nick
Hi!Alexandra
Write a program in Scala 3
my father name
val name1 = "Nick"

my mother name
val name2 = "Alexandra"

method that greets by name
@param takes name as string
def greeting(name: String) = {
print("Hi!")
print(name)
to separate greeting
println()
}
___

Create a free account to access the full topic