View Code of Problem 114

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	int n=0,i;
	getline(cin,s);
	n=s.length();
	for(i=n-1;i>=0;i--)
	cout<<s[i]<<endl;
}

Double click to view unformatted code.


Back to problem 114