View Code of Problem 52

#include <stdio.h>
#include <string.h>
int main()
{
	char str[100];
	gets(str);
	char temp;
	int len=strlen(str);
	
	for(int i=0;i<len/2;++i)
	{
		temp=str[i];
		str[i]=str[len-1-i];
		str[len-i-1]=temp;
	}
	puts(str);
	

	return 0;
}

Double click to view unformatted code.


Back to problem 52