In the above program, we used an object-oriented approach to create the program. Here, we created an objectSample. We definedmain()function. Themain()function is the entry point for the program. In themain()function, we created an integer variablenum. Then we read the value of variablenu...