scanf() function in C

The scanf() function is used for input. It reads the input data from the console.
<pre><code>
scanf("format string",argument_list);  
</code></pre>