#include <stdio.h>
int main()
int t,i,j,k;
scanf("%d",&t); // 'line5'
char str[10000];
for(i=0;i<t;i++)
{
scanf("%[^\n]s",str);// 'line9'
k=strlen(str);
for(j=0;j<k;j++)
{
printf("%c",str[j]);
}
printf("\n");
}
return 0;
}
## scanf function is not working
I have tried this question by another way but still not working.I am facing this problem for 1st time.