Scanf function in C which allows the programmer to accept input from the standard input device (keyboard) and stores them in variables. The scanf is similar to printf function. Instead of printing data on the output device it reads data entered from the input device.
scanf(“%lf”, &miles);
Reads a real number that (by default) the user has typed in into the variable miles
scanf(“%c%c%c”, &letter_1, &letter_2, &letter_3);
scanf(“%c%c%c”, &letter_1, &letter_2, &letter_3);
HYPER ERA PVT.LTD | TERMS & CONDITIONS