View Code of Problem 52

#include <stdio.h>
#include <string.h>
#include <math.h>
#define N 100
int main()
{
	char a[N];
	int lenth;
	int i;
	gets(a);
	lenth=strlen(a);
	for(i=lenth-1;i>=0;i--)
	{
		printf("%c",a[i]);
	}
}

Double click to view unformatted code.


Back to problem 52