View Code of Problem 52

#include<iostream>
#include<map>
#include<cmath>
using namespace std;
int main(){
	string str1;
	while(getline(cin,str1)){
		for(int i=str1.length()-1;i>=0;i--){
			printf("%c",str1[i]);
		}
		cout<<endl;

	}
		return 0;
}

Double click to view unformatted code.


Back to problem 52