Go: package main

import (
        "fmt"
)

func main () {
        var str string
        fmt.Scanf("%s", &str)
        show(len(str)-1, str)
}

func show(n int, str string) {
        if n == 0 {
                fmt.Printf("%s\n", string(str[n]))
        } else {
                fmt.Printf("%s", string(str[n]))
                show(n-1, str)
        }
}

C++: #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


//6

int main(void) {
	string str;
	cin >> str;
	reverse(str.begin(), str.end());
	cout << str << endl;
}

C++: #include <iostream>
#include <algorithm>

using namespace std;

int main()
{
	string str;
	cin >> str;
	reverse(str.begin(), str.end());

	cout << str << endl;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    char arr[20];
    gets(arr);
    strrev(arr);
    printf("%s\n",arr);
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	char a[20];
	scanf("%s",a);
	for(int i=strlen(a)-1;i>=0;i--)
	{
		cout<<a[i];
	}
	cout<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;

typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pair<int, int> > vii;
#define rrep(i, m, n) for(int (i)=(m); (i)<(n);  (i)++)
#define  rep(i, n)    for(int (i)=0; (i)<(n);  (i)++)
#define  rev(i, n)    for(int (i)=(n)-1; (i)>=0; (i)--)
#define vrep(i, c)    for(__typeof((c).begin())i=(c).begin(); i!=(c).end(); i++)
#define  ALL(v)       (v).begin(), (v).end()
#define mp            make_pair
#define pb            push_back
template<class T1, class T2> inline void minup(T1& m, T2 x){ if(m>x) m=static_cast<T2>(x); }
template<class T1, class T2> inline void maxup(T1& m, T2 x){ if(m<x) m=static_cast<T2>(x); }

#define INF 1000000000
#define MOD 1000000009
#define EPS 1E-9

string s;

int main()
{
  cin >> s;

  rev(i, s.size()) cout << s[i];  cout << endl;

  return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;

int main(){
	string ss;
	cin>>ss;
	for(int i=ss.size();i>=0;i--){
		if(ss[i]!=0)cout<<ss[i];
	}
	cout<<endl;
	return 0;
}

C++: #include <cstdio>
#include <iostream>

using namespace std;

int main(){
	char str[21];
	int count=0;
	
	scanf("%s", str);
	
	while( str[count] != '\0' ) ++count;
	
	for(int i=count-1; i>=0; --i)
		printf("%c", str[i]); 
	printf("\n");

	return 0;
}

C++: #include<iostream>
using namespace std;

int main()
{
    char str[21];
    int i;
    cin>>str;
    for(i=0;str[i]!='\0';)
        i++;
    for(int k=i-1;k>=0;k--)
    {
        cout<<str[k];
    }
    cout<<endl;
    return 0;
}

C++: #include <iostream>
#include <string>

using namespace std;

string revstr( string str ) {
	string ret;
	for(int i = str.length() - 1; i >= 0; i--)
		ret += str[i];
	return ret;
}

int main(void){
	string str;
	cin >> str;
	cout << revstr( str ) << endl;
	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main()
{
	string moji;
	char r_moji[20];

	cin >> moji;

	for(int i=0; i < moji.length(); ++i)
	{
		r_moji[i] = moji[moji.length()-(i+1)];
	}
	
	for(int i=0; i < moji.length(); ++i)
		cout << r_moji[i];

	cout << '\n';

	return 0;
}

C++: #include<iostream>
#include<string>

int main()
{
	std::string str;

	std::cin >> str;

	size_t strL = str.length();

	for(size_t i=0; i<strL; ++i)
	{
		std::cout << str[strL-1-i];
	}
	std::cout << '\n';

}

C++: #include <iostream>
using namespace std;

int main(void)
{
	string str;
	cin >> str;

	for (int i = str.size()-1; i >= 0; i--)
		cout << str[i];
	cout << endl;
	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main(){
    string str;
    cin >> str;
    for(auto it=str.rbegin();it!=str.rend();++it)cout << *it;
    cout << endl;
    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
#include <cstring>
#include <utility>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#define debug(x) cerr << #x << ':' << x << endl
#define rep(i,n) for(int i=0;i<(int)n;++i)
#define ALL(c) (c).begin(), (c).end()
using namespace std;
typedef long long ll;

int main(){
    string s;
    cin >> s;
    reverse(ALL(s));
    cout << s << endl;
    return 0;
}

C++: #include<iostream>
#include<string.h>
#include<cstdio>
using namespace std;

int main(){
  string str;
  cin >> str;
  int l = strlen(str);
  for(int i = l - 1; i >= 0; i--){
    cout << str[i];
  }
  cout << endl;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main() {
  string str;
  while (cin >> str) {
    cout << str.reverse() << endl;
  }
}

C++: #include <stdio.h>
#include <string.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    int lStr = strlen( str )-1;
    for( int i = 0;i < strlen( str );i++ ){
        printf( "%c",&str[lStr] );
    }
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <sstream>
#include <string>
#include <math.h>
#include <algorithm>

using namespace std;

int main()
{

string s;
cin>>s;
reverse(s.begin(),s.end());
cout<<s;

}

C++:   #include <iostream>
#include <string>
using namespace std;
int main(){
	string str;
	int i,j;
	cin >> str;
	string st="";
	for( i=str.size()-1; i>=0 ; i-- )
		st+=str[i] ;
	cout << st << endl;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
	string str;

	cin>>str;
	for (int i=1;i<=str.length();i++){
		cout<<str[str.length()-i];
	}
	cout<<endl;

	return 0;
}

C++: #include<bits/stdc++.h>
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  string a;
  cin>>a;
  reverse(all(a));
  cout<<a<<endl;
}

C++: #include<stdio.h>
#include<string.h>

int main()
{
     int i,x,y;
     char a[25], b[25];
     gets(a);
     y=strlen(a)-1;
     x=y;
     for(i=0;i<=y;i++)
     {
          b[i]=a[x];
          x--;
     }
     b[i]='\0';
     puts(b);
     return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<string>
using namespace std;

int main(){
    char str[25];
    cin>>str;
    for(long i=strlen(str); i>=0; i--){
        cout<<str[i];}
    return 0;
}

C++: #include <iostream>
#include <cstring>
using namespace std;

int main()
{
  int str_size=0;
  char temp[20];
  char str[20];
  cin>>str;

  str_size=strlen(str);
  strcpy(temp, str);
  
  for(int i=0;i<str_size;i++)
    str[i]=temp[str_size-1-i];

  cout<<str<<endl;
  
  return 0;
}

C++: #include<iostream>

using namespace std;

int main(){

   string str;

   cin>>str;

   reverse(str.begin(),str.end());

   cout<<str<<endl;

   return 0;

}

C++: #include <iostream>
#include <cstring>

using namespace std;

int main()
{
    string str;
    cin >> str;
    for (int i = str.size() - 1; i >= 0; i--) {
        cout << str[i];
    }
    cout << endl;
    return 0;
}

C++: #include<iostream>
#include<cstring>

using namespace std;

void reverseChar(char* str);

char str[50],rstr[50];
int i;

int main()
{
    cin>>str;
    reverseChar(str);
    cout<<str << endl;
    return 0;
}

void reverseChar(char* str)
{
    for(i=0;i<strlen(str)/2;i++)
    {
        char temp= str[i];
        str[i]=str[strlen(str)-i-1];
        str[strlen(str)-i-1]=temp;
    }
}

C++: #include <stdio.h>
#include <string.h>
int main(){
char str[20];
char c;
int i = 0;
memset(str, '\n', 20);
while((c = getchar()) != '\n'){
str[i++] = c;
}
while(i--){
printf("%c", str[i]);
}
printf("\n");
return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;

int main() {
	string str,a;
	a = 0
	cin >> str;
	for(i =str.size()-1;i>=0;i--){
		a += str[i];


	}
	cout << a << endl;
	
	return 0;
}