/* a5-4-10.c */
#include <stdio.h>

int main(void)
{
	char str[3][8] = {"cabbage", "carrot", "onion"};
	int i, n;

	for (i = 0; i < 3; i++) {
		n = 0;
		while (str[i][n] != '\0') {
			n++;
		}
		while (n > 0) {
			n--;
			printf("%c", str[i][n]);
		}
		printf("\n");
	}

	return 0;
}
