Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- //1. прочитаме име, фамилия, възраст, град
- //2. отпечатваме: "You are <firstName> <lastName>, a <age>-years old person from <town>."
- string name;
- string lastName;
- string town;
- int age;
- cin >> name;
- cin >> lastName;
- cin >> age;
- cin >> town;
- cout << "You are " << name << " " << lastName << ", a " << age << "-years old person from " << town << ".";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement