View Code of Problem 52

#include<iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cmath>
#include <algorithm>
using namespace std;
#pragma warning(disable:4996)


int main() {
	char s[100];
	gets(s);
	int n = strlen(s);
	for (int i = 0; i < n; i++) {
		printf("%c", s[n - i - 1]);
	}
	return 0;
}	

Double click to view unformatted code.


Back to problem 52