Write a program that first reads the user's name as a string, then reads the user's age as a number, and then their favorite movie. In the end, the program should output "Hi, name, your age is age, your favorite movie is favorite movie".
Input/Output
Greetings
Report a typo
Sample Input 1:
Mark
15
Spider ManSample Output 1:
Hi, Mark, your age is 15, your favorite movie is Spider ManWrite a program in Scala 3
import scala.io.StdIn._
@main def program =
// put your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.