View Code of Problem 52

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

Double click to view unformatted code.


Back to problem 52