Coding Challenge: Improved Hello

Learn how to take input from the user on runtime.

Starting with this, build the habit of choosing good variable names.

Problem statement

Write a program that asks the user for his first name and last name. It then concatenates them and displays them in a single sentence.


Prompt the user for his first and last name, let’s say she entered the following:

Enter FirstName : Alison

Enter LastName : Tyler

Expected output

Display complete name:

Hello, Alison Tyler

Coding exercise

Get hands-on with 1200+ tech skills courses.