Infosys interview question

Code an arithmetic series using any programming language I know.