View Code of Problem 52

#include<stdio.h>
#include <string.h>
int main(){
	char s[1000];
	gets(s);
	int len=strlen(s);
	int i;
	char t;
	for(i=0;i<len/2;i++){
		t=s[i];
		s[i]=s[len-1-i];
		s[len-1-i]=t;
	}
	puts(s);
}

Double click to view unformatted code.


Back to problem 52