Question: Given the following variables : string firstname = John; string lastname = Wayne; string fullname; Write the code that will take the last name from

Given the following variables :

string firstname = "John"; string lastname = "Wayne"; string fullname;

Write the code that will take the last name from the lastname variable and combine it with a comma, space, and the first name from the firstname variable and put it into the variable fullname.

In this example, if we display the fullname variable , it should show "Wayne, John".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!