We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#include<iostream> #include<string> using namespace std; int main() { string str(""); string newStr(""); cout << "input your message :"; cin >> str; for (int i = (str.length() - 1); i >= 0; i--) { newStr += str[i]; } cout << newStr << endl; cin.ignore(6); }