View Code of Problem 52

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

Double click to view unformatted code.


Back to problem 52