From Fedora Project Wiki

Code::Blocks is a free and open-source (licensed under the GNU General Public License version 3) IDE written in C++ with support for the C, C++ and Fortran programming languages. It is built using the wxWidgets toolkit. It is in the official Fedora repositories.

Installation

As it is in the official Fedora repositories, merely running:

sudo dnf install codeblocks

should install it.