A computer program is a set of instructions written in a programming language that tells a computer how to perform a specific task. It acts as a bridge between the user and the hardware, enabling computers to execute a wide range of operations, from simple calculations to complex tasks. Programs are typically written using programming languages such as C, Python, or Java. The program’s code is executed by the computer’s processor, and depending on the logic and input, the program can produce outputs, modify data, or interact with other software systems to achieve the desired functionality.