#include <iostream>
#include <string>
using namespace std;
int main() {
// Variables
string firstName;
string lastName;
// Enter the first and last name
cout << "Write first and last name\n";
cin >> firstName >> lastName;
// Output the result
cout << lastName << ", " << firstName;
return 0;
}
Comments
Leave a comment