View Code of Problem 52

#include <stdio.h>
#include <string.h>
int main()
{
	char a[100];
	char b[100];
	int i;
	int n;
	int j;
	gets(a);
	n = strlen(a);
	for(i = n-1;i>=0;i--)
	{
		b[j] = a[i];
		j++;
		
		
	}
	
	puts(b);
	return 0;
}

Double click to view unformatted code.


Back to problem 52