| Application: Input Using Standard I/O functionscanf()scanf()requires the address of a variable as argument
scanf()uses a format string likeprintf() use %dto read an integer value| 
#include <stdio.h>
…
int answer;
printf("Enter your answer: ");
scanf("%d", &answer);
 | 
 
 use %fto read a floating point value   (%lffordouble)| 
float e;
printf("Enter e: ");
scanf("%f", &e);
 | 
 
 scanf()returns a value — the number of items read
 use this value to determine if scanf()successfully read a number
 scanf()could fail e.g. if the user enters letters |