View Code of Problem 52

#include <stdio.h> 
#include <string.h>
int main()
{
    char s1[100],s2[100];
    int n,i,k=0;
    gets(s1);
    n=strlen(s1);
    for(i=n-1;i>=0;i--)
    {
    	s2[k++]=s1[i];
    	
	}
	s2[i]='\0';
	puts(s2);
    return 0;
}

Double click to view unformatted code.


Back to problem 52