View Code of Problem 52

#include "stdlib.h"
#include "iostream"
#include "string.h"
int main()
{
	char s[100];
	scanf("%[^\n]",&s);
	int len = strlen(s);
	for (int i = len-1; 0<=i; i--)
	{
		printf("%c",s[i]);
	}
	
	system("pause");
}

Double click to view unformatted code.


Back to problem 52