subject

Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. End with newline.

Example output if the input is: Maya Jones

Jones, Maya


#include
#include
using namespace std;

int main() {
string firstName;
string lastName;

YOUR ANSWER HERE

return 0;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:00
Mr. johnson creates a game in which the players see the world from their avatar’s perspective. what genre of game is this?
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
You know the right answer?
Write a program that reads a person's first and last names, separated by a space. Then the program o...
Questions
question
English, 16.06.2021 20:10
question
Mathematics, 16.06.2021 20:10
question
Mathematics, 16.06.2021 20:10
question
Chemistry, 16.06.2021 20:10
question
History, 16.06.2021 20:10
Questions on the website: 13722367