View Code of Problem 52

#include <stdio.h>
#include <iostream>
#include <string.h>
#include <string>
#include <algorithm>
#include <iomanip>
#include<vector>
#include<math.h>
using namespace std;
int main()
{
	string s;
	getline(cin, s);
	int t = s.length();
	for (int i = t - 1; i >= 0; i--) {
		cout << s[i];
	}
}

Double click to view unformatted code.


Back to problem 52