输入一个整数n,接下来输入n行字符串,再依次输出各个字符串。
运行代码:3
abcd //输入
abcd //输出
123456 //输入
123456 //输出
abcd12345 //输入
abcd12345 //输出
2020-12-11 19:28
程序代码:
#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编辑过]
2020-12-11 19:44
2020-12-11 21:49
2020-12-12 00:17