Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
  string firstName, secondName;
  cin >> firstName >> secondName;

  int age;
  cin >> age;

  string town;
  cin >> town;

  printf("You are %s %s, a %d-years old person from %s",
    firstName.c_str(), secondName.c_str(), age, town.c_str());
}