#include<stdio.h>
#include<string.h>
int main()
{
  int N;
  int i;
  scanf("%d",&N);
  char A[100][100];
  for(i=0;i<N;i++)
    gets(A[i]);
  for(i=0;i<N;i++)
    printf("%s\n",A[i]);
}
Here is a simple program to enter a no of strings and then print them.When i use gets it reads one string less
 
     
    