Skip to content

Practice Problem 2

Seanti edited this page Mar 26, 2025 · 1 revision

Problem:

Write a program that asks the user to enter their first name, last name, and age. Then, print a greeting message using the inputted values.

Sample Output:

Enter your first name: Maria  
Enter your last name: Santos  
Enter your age: 20  
Hello, Maria Santos! You are 20 years old.

Clone this wiki locally