how to install gcc in terminal code example
Example 1: install gcc in ubuntu
$ sudo apt install build-essential
Example 2: gcc 7 install ubuntu
sudo apt install gcc-7 g++-7 gcc-8 g++-8 gcc-9 g++-9
$ sudo apt install build-essential
sudo apt install gcc-7 g++-7 gcc-8 g++-8 gcc-9 g++-9