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
Get step-by-step solutions from verified subject matter experts
