Go: package main

import (
	"bufio"
	"fmt"
	"os"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func main() {
	scanner.Split(bufio.ScanWords)

	str := nextString()
	for i := len(str) - 1; i >= 0; i-- {
		fmt.Print(str[i:(i + 1)])
	}
	fmt.Print("\n")
}

C++: #include<iostream>
using namespace std;
#include<stdio.h>
int main()
{
    char str[21];
    int i,j;
    gets(str);
    for(i=0;;i++)
    {
        if(str[i]=='\0')
        break;
    }

    for(int j=i-1;j>=0;j--)
    {
        printf("%c", str[j]);
    }
    return 0;
}

C++: #include<string.h>
#include<stdio.h>
int main(void)
{
	char a[21];
	int A,i;
	scanf("%s",a);
	A=strlen(a);
	for(i=0;i<A+1;A--){
		printf("%c",a[A]);
	}
	printf("\n");
	return 0;
}

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

using namespace std;

int main() {

	char str[20];
	int i, len=0;

	cin >> str;

	while (str[len]) 
		len++;

	for (i = len - 1; i >= 0; i--)
		cout << str[i];

	putchar('\n');

	return 0;

}

C++: #include <bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(), (v).end()


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

C++: #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cassert>
#include <vector>
#include <string>
#include <cmath>
#include <map> 
#include <sstream>
#include <cstdio>
#include <complex>
#include <cstring>
using namespace std;
 
const int MAX= 10000100;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()
#define ll long long int
#define gcd(a,b) __gcd(a,b)
#define pb(a) push_back(a)
int GCD(int a, int b) {if(!b) return a; return gcd(b, a%b);}
int lcm(int a, int b) {return a*b / gcd(a, b);}

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

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

int main(){
  string str;
  int len;
  cin >> str;
  len = str.length();

  for(int i=len;i>=0;i--){
    cout << str[i];
  }
  cout << endl;

  return 0;

}

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

#define MAX 256

int main(void){

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	string str;
	while(cin>>str){
		for(int i=str.length()-1;i>=0;i--)
			cout<<str[i];
		puts("");
	}
}

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

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 <algorithm>
using namespace std;
 
int main(){
	string s;
	while ( cin >> s ) {
		reverse( s.begin() , s.end() );
		cout << s << endl;
	}
}

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

using namespace std;

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

C++: #include <iostream>
#include <string>
#include <stdlib.h>

using namespace std;

void reverse(char[]);

int main() {

	char str[21];
	cin >> str;
	reverse(str);
}

void reverse(char s[]) {
	int i, l=strlen(s);
	char t;

	for(i=0; i<l/2; i++) {
		t=s[i];
		s[i]=s[l-i-1];
		s[l-i-1]=t;
	}

	cout << s;

}

C++: 
/* vo00_06.cpp */
#include <iostream>
#include <string>
using namespace std;

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

	for (int i = str.size(); i--;)
		cout << str[i];
	cout << '\n';

	return 0;
}

C++: #include<iostream>
#include<string>
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 <string.h>
using namespace std ;

int main()
{
	char get[20] ;
	cin >> get ;

	int i = 0 ;
	char output[20] ;
	while( (strlen(get)-i) > 0 )
	{
		output[i] = get[strlen(get)-i-1] ;
		i ++ ;
	}

	cout << output ;

	return 0 ;
}

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

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

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


int main() {
	char a[21] = {0};
	cin.getline(a, 21);
	for (int i = 0; i < 21; i++) {
		if (a[20 - i] == '\0')
			continue;
		cout << a[20 - i];
	}
	cout << endl;
	return 0;
}

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

int main(){
    std::string str;
    std::cin >> str;
    const int size = str.size();
    for(int i = 0; i < size; ++i){
        if(i != size - 1){
            std::cout << str.back();
        }else{
            std::cout << str.back() << std::endl;
        }
        str.erase(str.size() - 1, 1);
    }
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
int main(){

	char a[21];
	int i;

	scanf("%s",a);
	for(i=0;a[i]!='\0';i++);
	if(i>0) i--;
	for(;i>=0;i--) std::cout << a[i];
	std::cout<<std::endl;
	
		return 0;
		}

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

string s;

int main()
{
	cin >> s;

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

	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

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

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

using namespace std;

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

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

auto main () -> int
{
    std::string s;
    std::getline (std::cin , s);
    for (auto ite = s.rbegin (); ite != s.rend (); ++ ite)
    {
        std::cout << * ite;
    }
    std::cout << std::endl;
}

C++: #include<stdio.h>
#include<string.h>
int main(void){
  char str[1024];
  int i=0;
  scanf("%s",&str);
  for(i=strlen(str)-1;i>=0;i--)
    printf("%c",str[i]);
  printf("\n");
  return 0;
}

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

int main(){

	std::string str;

	std::cin >> str;
	
	std::reverse(str.begin(), str.end());

	std::cout << str << std::endl;

	return 0;
}

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

void swap(char *a,char *b){
	int w=*a;
	*a=*b;
	*b=w;
}
int main(){
	string str;
	cin >> str;
	for(int i=0;i<str.size()/2;i++){
		swap(str[i],str[str.size()-i-1]);
	}
	cout << str << endl;

		return 0;
}

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

int main()
{
	string str,str2="";
	cin >> str;

	for(int i = str.length() - 1; i >= 0; i--)
		str2 += str[i];
	str2 += "\0";
	cout << str2; 

	return 0;
}

C++: #include<iostream>

using namespace std;

char str[19];

int main()
{
	cin>>str;
	for(int i=0;i<20;++i)
	{
		if(str[19-i]!=0)
			printf("%c",str[19-i]);
	}

}

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

char input[23];

int main(){
	cin >> input;

	for(int i=strlen(input)-1; 0 <= i; i--){
		cout << input[i];
	}
	cout << endl;
}

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

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

using namespace std;

int main(){
	int a=0;
	int i=0;
	char moji[20];
	while(cin.get(moji[i])){
		a=moji[i];
		if(a==10){break;}
		i++;}
	for(int j=0;j<i;j++){cout.put(moji[i-1-j]);}}

C++: #include<iostream>
#include<string>
using namespace std;
int main()
{
	char a[20] = {};
	char b[20] = {};
	int alen;
	cin >> a;
	alen = strlen(a);
	for (int i = 0; i < alen; i++) {
		b[i] = a[alen - i-1];
	}
	cout << b << endl;
	

	return 0;
	
}