输入一个整数n,接下来输入n行字符串,再依次输出各个字符串。
运行代码:3
abcd //输入
abcd //输出
123456 //输入
123456 //输出
abcd12345 //输入
abcd12345 //输出
#include<stdio.h> int main() { int n; char s; scanf("%d",&n); while(n--) { scanf("%s",s); printf("%s\n",s); } }
[此贴子已经被作者于2020-12-12 00:16编辑过]