View Code of Problem 52

#include<stdio.h>
#include<math.h>
int main(){
	char a[100];
	int i=0;
	while(i<100){
		a[i]=getchar();
		if(a[i]=='\n')
		break;
		i++;
	}
	for(int j=i-1;j>=0;j--){
		printf("%c",a[j]);
	}
}

Double click to view unformatted code.


Back to problem 52