// ex_ch6_6.c
#include <stdio.h>
#include <string.h>

int main(void)
{
	char* word;

	printf("Input word to reverse: ");
	scanf("%s", word);

	for (int current = strlen(word) - 1; current >= 0; current--)
	{
		printf("%c", word[current]);
	}
	printf("\n");

	return 0;
}