According to Wikipedia, A computer is a machine that can be instructed to carry out sequences of arithmetic or logical operations automatically via computer programming. Modern computers have the ability to follow generalized sets of operations, called programs. These programs enable computers to perform an extremely wide range of tasks.

Computer can also be defined as an electronic device capable of accepting data as input, processing it with a help of instruction called program, brings out the result as output and stores the result for future use.