View Code of Problem 52

#include<stdio.h>
#include<string.h>
int main()
{
	char str[100];
	char str1[100];
	int b,i,j=0;
	gets(str);
	b=strlen(str);
	for(i=b-1;i>=0;i--)
	{
		str1[j]=str[i];
		j++;
	}
	str1[b]='\0';
	printf("%s\n",str1);
	return 0;

}




Double click to view unformatted code.


Back to problem 52