Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string a, b, c;
- getline(cin, a);
- getline(cin, b);
- getline(cin, c);
- cout << c << endl
- << b << endl
- << a << endl;
- }
Advertisement
Comments
-
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string name1, name2, name3;
- getline(cin, name1); // считайте три названия книг целиком и выведите их в обратном порядке
- getline(cin, name2);
- getline(cin, name3);
- cout << name3 << endl << name2 << endl << name1 << endl;
- }
Add Comment
Please, Sign In to add comment
Advertisement