/*  File: scanf.c

    This program demonstrates the use
    of the scanf function.
*/

/* Include only the standard library */

#include <stdio.h>

main() {
   int n ;
   double x ;

   printf("Enter an integer: ") ;
   scanf("%d", &n) ;
   printf("Enter a double: ") ;
   scanf("%lf", &x) ;

   printf("n = %d, x = %lf\n", n, x) ;
}

