View Code of Problem 52

#include<stdio.h>
int main ()
{
	int i,n=0,j=0;
	char str1[80],str2[80];
	gets(str1);
	for(i=0;str1[i]!='\0';)
	   i++;
	n=i-1;
	while(n>=0)
	{
		str2[j++]=str1[n];
		n--;
	}
	str2[j]='\0';
	puts(str2);
	   
	
}

Double click to view unformatted code.


Back to problem 52