fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. string nome;
  8. cin >> nome;
  9. for (int i = nome.length() - 1; i >= 0; i--) {
  10. cout << nome[i];
  11. }
  12. }
  13.  
  14. //http://pt.stackoverflow.com/q/190443/101
Success #stdin #stdout 0s 15240KB
stdin
teste
stdout
etset