View Code of Problem 52

#include<stdio.h>
#include<string.h>
#define N 100
int main()

{
	int i,len=0,j;
	char str[N],word[N];
	gets(str);
	len=strlen(str);
	for(i=len-1,j=0;i>=0;i--,j++)
		word[j]=str[i];
	for(j=0;j<len;j++)
		printf("%c",word[j]);
	return 0;
 } 

Double click to view unformatted code.


Back to problem 52