my_strlen(char* str)
{
int count = 0;
while (*str != '\0')
{
count++;
str++;
}
return count;
}
void test(char*str)
{
int left = 0;
int right = my_strlen(str)-1;
while (left < right)
{
char tmp = str[left];
str[left] = str[right];
str[right] = tmp;
left++;
right--;
}
}
int main()
{
char arr[20] = "abcdef";
scanf("%s", arr);
test(arr);
printf("%s", arr);
return 0;
}