View Code of Problem 52

#include<bits/stdc++.h>
using namespace std;
#define ma 102
int main(){
	char a[ma],c;
	int n = 0;
	while((c = getchar())!='\n'){
		a[n++] = c;
	}
	for(int i = n-1;i>=0;i--)
		cout<<a[i];
		
	
	return 0;
}

Double click to view unformatted code.


Back to problem 52