008-004-007
Multiple Parameters Method: Greeting Program
Easy
Problem Description
Multiple Parameters method: Greeting Program
In this problem, you will create a program that defines a greet method accepting three parameters (name, age, and hometown) and displays a formatted greeting message to standard output.
Learning Objective: Define methods with multiple parameters
Create program displaying greeting with three information pieces: name, age, hometown. Pass multiple arguments to greet method.
Input
Line 1: Name (string)
Line 2: Age (integer)
Line 3: Hometown (string)
Output
Hello, [name]!
You are [age] years old from [hometown].
Nice to meet you!
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up