In the previous chapter, you learned about the conditional execution of a program’s statements. In this chapter, you will deepen your knowledge of this topic. I will show you how to use conditions and branching on several simple tasks that you will encounter sooner or later in your programming career.
Appending Extension
Sometimes, you want to ask the user about a file name, but you do not know whether the user will enter it with or without an extension.