download teamviewer for ubuntu using terminal

C++
#Install this package before install teamviewer
sudo apt install -y libqt5x11extras5

#Download teamviewer
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

#Install it
sudo apt install ./teamviewer_amd64.deb

#Run it
teamviewerwget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
Source

Also in C++: