Download the installer from any of the links below.
It includes both the compiler(gcc) and IDE.
Open your terminal and type in the following commands. Enter you password when prompted.
The following command will install the C compiler and a bunch of other things you will need.
sudo apt-get install build-essential
Enter the following commands after installing the C compiler.
sudo add-apt-repository ppa:damien-moore/codeblocks-stable
sudo apt-get update
sudo apt-get install codeblocks codeblocks-contrib
Check out this page for more details.
You can find the binaries here.
Download the application from here.
Refer this tutorial for detailed instructions on installation process.