View Code of Problem 52

#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
	string s;
	char c;
	while(scanf("%c", &c) != EOF)
	{
		if(c == '\n')
			break;
		s = c + s;
	}
	cout << s;
	return 0;
 } 

Double click to view unformatted code.


Back to problem 52