fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string napis;
  6. while(cin>>napis){
  7. auto dl=napis.length();
  8. for(auto i=dl-1; i+1>0; i--){
  9. cout<<napis[i];
  10. }
  11. cout << endl;
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 15240KB
stdin
Alamakota
Kotma2lata
IlelatmaAla
Piszemydobrekody
stdout
atokamalA
atal2amtoK
alAamtalelI
ydokerbodymezsiP