#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
void reverseStr(char* str, int size) {
char tempStr[BUFSIZ];
for (int i = 0, j = size - 1; i < size; ++i, --j) {
tempStr[i] = str[j];
}
tempStr[size] = 0;
strcpy(str, tempStr);
}
int main() {
char str[BUFSIZ];
cout << "Sayi gir: ";
cin >> str;
int size = strlen(str);
reverseStr(str, size);
for (int i = 0; i < size; ++i) {
cout << i + 1 << ". basamak: " << str[i] << endl;
}
return 0;
}