View Code of Problem 52

#include<iostream>
#include<cmath>
#include<cstdio>
#include <cstring>
using namespace std;

int main() {
	char s1[100];
	//char s2[100];
	cin.getline(s1, 100);
	//strcpy_s(s2, s1);
	int n = strlen(s1);
	for (int i = 0; i < n; i++) {
		cout << s1[n - i - 1];
	}

	return 0;
}

Double click to view unformatted code.


Back to problem 52