View Code of Problem 52

#include<bits/stdc++.h>
using namespace std;

int main()
{
	char a[200];
	fgets(a,200,stdin);
//	gets(a);
//	cin.getline(a,200);
	int len=strlen(a);
	for(int i=len-2;i>=0;i--)
		printf("%c",a[i]);
	return 0;
}

Double click to view unformatted code.


Back to problem 52