View Code of Problem 52

#include<stdio.h>
#include<math.h>
#include<ctype.h>
#include<string.h>
#include<iostream>
using namespace std;
#include<algorithm>
int main()
{
	char str[100];
	gets(str);
	int len = strlen(str);
	for (int i = len - 1; i >= 0; i--)
	{
		cout << str[i];
	}

}

Double click to view unformatted code.


Back to problem 52