Write a program that prompts the user to enter his or her first and last name (assigned to two different variables) and then joins them together in a single string (concatenation).

Solution

The program is shown here.

PHP

Java

C++

C#

Visual Basic

Python

Notice: Please note the extra space character added between the first and last name.

Leave a Reply

Your email address will not be published. Required fields are marked *

This article is taken from a book of mine. If you enjoyed it, please visit my author's page inand check out all of my books!