/************************
 * scanf-example.c
 *
 * Program to show a simple use of scanf.
 *
 * Author: April O'Neill
 *
 * Date: 25 July 2011
 ************************/

#include <stdio.h>

int
main()
{
  double number;
  char input[50];     /* 50 is an arbitrary number, limiting input's length */

  printf ("Enter a number of the double type: ");
  scanf ("%lf", &number);
  printf ("\tYou entered the number \"%lf\".\n", number);

  printf ("Enter a word: ");
  scanf ("%s", &input);
  printf ("\tYou entered the word \"%s\".\n", input);

  return 0;
}
