All pastes #439303 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-14 04:42 UTC
rendered paste body
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;

int main(){
    string myname;
    cin >> myname;
    unsigned int length = myname.length();
    char reverse[length];
    for (int i=length-1;i>=0;i--){
        reverse[i-1]=myname[length-i];
        }
    cout << reverse[0] << reverse[1] << reverse[2] << reverse[3] << reverse[4];
    _getch();
    return 0;
}

}