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--,j++)
	{
		str1[j]=str[i];
	}
	/*printf("%s",str1);*/
	for(i=0;i<b;i++)
	{
		printf("%c",str1[i]);
	}
        printf("\n");
	return 0;

}




Double click to view unformatted code.


Back to problem 52