Please read the guide .
Please answer the question in detail
#include <iostream> #include <string> using namespace std; int main() { string word; cout << "Enter a word: "; cin >> word; cout << "Reverse order of characters:" << endl; for (int i = word.length() - 1; i >= 0; i--) { cout << word[i] << endl; } return 0; }
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
550 users