Untitled
public cpp v1 · immutable#include <iostream>#include <string>#include <algorithm>using namespace std;int main(){ string werd; cout << "w3rd : "; cin >> werd; string inverted (werd.length(),' '); reverse_copy(werd.begin(),werd.end(),inverted.begin()); cout << "Inverted: " << inverted << "\n"; return 0;}