/*****************************************************************************
   Function: Read and print three floating point numbers.
   Status:   01-mar-2002, pfk.
             24-aug-2010, wlm.
   Remarks:
   - "stdio.h" is a header file containing definitions of macros and
     variables used by the I/O system
   - "stdlib.h" is a header file for the many system functions
   - a, b and c are floating point variables
   - function "scanf" reads formatted input from stdin, i.e. the keyboard
   - "%f" denotes format conversion to float
   - "&" denotes the address of the variable to be passed to the input
     function (and not a copy of the value)
   - function "printf" prints formatted output to stdout, i.e. the screen
   - "\n" denotes the end-of-line character
 ****************************************************************************/

#include <stdio.h>
#include <stdlib.h>

int main ()
{
  /* declarations */
  float floatOne, floatTwo;
  int intOne;

  /* message for user */
  printf ("Geef twee floating point getallen en een integer, gescheiden door een spatie:\n");

  /* read three floating point values from standard input */
  scanf ("%f %f %d", &floatOne, &floatTwo, &intOne);

  /* print the three values on standard output */
  printf ("Ingevoerde waarden: %f, %f, %d\n", floatOne, floatTwo, intOne);

  /* Zie Table B.1 voor formaaten van printf */

#ifdef _WIN32
    printf("\n\n");
    system("PAUSE");
#endif

  return (0);
}
