How old are you?

Report a typo

Write a program that will read the user's age and print it to the console with the line "Your age is".

For example, if the user's age is 18, the program should print "Your age is 18".

Sample Input 1:

0

Sample Output 1:

Your age is 0
Write a program in Scala 3
import scala.io.StdIn.readLine

@main def program =
// write your code here
___

Create a free account to access the full topic