View Code of Problem 52

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

Double click to view unformatted code.


Back to problem 52