View Code of Problem 52

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

Double click to view unformatted code.


Back to problem 52