Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- string entrada;
- int k;
- bool go = true;
- cin>>entrada;
- while(go){
- k = entrada.size()-1;
- while(k>-1){
- cout<<entrada[k];
- k--;
- }
- if(cin>>entrada){
- go = true;
- cout<<" ";
- }else{
- go = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment