Simple C++ Programs - Great Learning
www.mygreatlearning.com › blog › simple-c-programsOct 28, 2021 · For any valid C++ program, it is important to make use of the main() function. In simple words, it is mandatory. C++ Program: Prints the number, entered by the user. Introduction: The respective program is used to print any number that the user enters. It is a simple program to understand as it is based on the basics of the C++ language.