A computer is an electronic device that can be programmed to perform mathematical calculations and process data. It works by accepting digital input, processing that input according to programmed instructions, storing and retrieving data and outputting results. Computers are used in many areas of work and life to perform tasks ranging from basic arithmetic to complex scientific calculations.