The scanf function allows you to accept input from standard in, which for us is generally the keyboard. The scanf function can do a lot of different things, but can be unreliable because it doesn’t handle human errors very well. But for simple programs it’s good enough and easy to use.
The simplest application of scanf looks like this:
scanf("%d", &b);
In this video we can see what happen if the sacnf missing the & symbol.