Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string words[100];
- int number;
- cout << "How many words would you like to work with? ";
- cin >> number;
- for (int i = 0; i < number; i++)
- {
- words[i];
- cin >> words[i];
- cout << words[i] << " ";
- }
- cout << endl;
- for (int i = number - 1; i >= 0; i--)
- {
- words[i];
- cout << words[i] << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement