#include <stdio.h>  /* Need for standard I/O functions */
#include <string.h> /* Need for string functions */


#define NUM 3   /* number of strings */
#define LEN 1000  /* max length of each string */

main()
{
  char* Strings[NUM];
  char temp[LEN];
  int i;

  printf("Please enter %d strings, one per line:\n", NUM);

  /* Write a for loop here to read NUM strings, using fgets(). */

  for (i=0; i<NUM; i++) {
    Strings[i]=malloc(LEN);
    fgets(Strings[i],LEN,stdin); 
  }

  for (i=0; i<NUM; i++) {
   printf("%s",*Strings[i]);
 }

}