View Code of Problem 52

#include<stdio.h>
#include<string.h>
	int main()
{
	char ch[1000];
	char x;
	int num, i,j;
	int n;
	gets(ch);
	n=strlen(ch);
	for(i=0;i<n/2;i++)
	{
		x=ch[i];
		ch[i]=ch[n-i-1];
		ch[n-i-1]=x;
	}
	puts(ch);
	return 0;
}

Double click to view unformatted code.


Back to problem 52