This example shows why functions are needed in C++. When code repeats, it becomes long and hard to fix. Functions let us write code once and call it many times. In the example, greet() prints a message. We call greet() twice, so the message prints twice without repeating code. This makes the program shorter and easier to maintain. If we want to change the message, we change it only inside greet(). The execution table shows each step: starting main, calling greet, printing, returning, calling greet again, printing again, and ending. Variables are not used here, so no changes tracked. Key moments explain why functions avoid repetition and how calls work. The quiz tests understanding of output, call steps, and benefits of functions. Overall, functions help organize code, save time, and reduce errors.