The function of CPU is To read, interpret and process the information and instruction.
The computer does its primary work in a part of the machine we cannot see, a control center that converts data input to information output. This control center, called the central processing unit (CPU), is a highly complex, extensive set of electronic circuitry that executes stored program instructions.
Just like humans, computers use a brain to process information. For a computer, the brain is the central processing unit (CPU). The CPU is the chip that executes all of the computer's programs. It sits on the motherboard and communicates with all of the other hardware components inside the computer.