Advertisement
Kazimirko

Основы С++ / Тема 1 / Урок 9. Строки / Задача 2

Feb 13th, 2021
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     // считайте имя и фамилию и выведите полное имя
  8.     string firstname, surname;
  9.    
  10.     cin >> firstname >> surname;
  11.     cout << surname + ", " + firstname << endl;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement