谁帮我翻译下c语言的题目

Given a list of words, print the words reversed on separate lines. Each word consists of English letters
only.

Input

The input consists of T test cases. The number of test cases (T) is given in the ¯rst line of the input ¯le.
Each test case consists of a single line, each line contains a word.

Output

For each test case, print the word reversed on one line.

Sample Input

2
HelloWorld
Madam

Sample Output

dlroWolleH
madaM

Given a list of words, print the words reversed on separate lines. Each word consists of English letters only.
给你一个单词列表,要求在单独的行上,把单词反序打印出来。
每个单词都只由英文字母组成。

Input
输入

The input consists of T test cases. The number of test cases (T) is given in the ¯rst line of the input ¯le.
Each test case consists of a single line, each line contains a word.

输入部分,包含T个测试例。测试例的数量T在输入文件的第一行。
每一个测试例是单独的一行,每一行包含有一个单词。

Output
输出

For each test case, print the word reversed on one line.
对于每个测试例,在一行上反序打印出单词。

Sample Input 输入举例

2
HelloWorld
Madam

Sample Output 输出举例

dlroWolleH
madaM
温馨提示:答案为网友推荐,仅供参考
第1个回答  2009-12-27
给定一个单词列表,打印逆序后单独的话。每个单词仅由英文字母组成

输入
输入包括T个测试数据。数字T单独一行。

每个测试数据占单独一行,每行包含一个单词。
输出
对于每个测试数据,在单独一行打印逆序后的单词。
例如输入
2
HelloWorld
Madam
示例输出
dlroWolleH
madaM