Example of stdio in C++
Below is an example of usingscanf() and printf() in C++. It is more efficient to use scanf() and printf() rather than cin and cout when the program needs to accept a large amount of input or write a large amount of output.
