1)Download and install Dev-C++ from *www.bloodshed.net. If u want u can run the online updater from Tools>Check for update menu and update ur installation.
2) Select File>New>Project from menu, or toolbar, and the 'New Project' dialog opens. Select the apprpriate one from there. Most likely, the one u need is 'Console Application' from 'Basic' Tab. But u can also make Win32 GUI app, Dev-C++ library, Win32 DLL, or OpenGL apps. If u install the appropriate updates, u can also make SDL or Console GDI apps, but u don't need them immediately.
3) Select the desired language, ie, C or C++, and the name of the project.
4) Now u have a skeletal console program that u can run or modify. Or, u can delete all of it and write a new one that u like.
5) When finished, press F9 and see the result.