The best way to learn CPP,JAVA, PYTHON, JAVASCRIPT is by practicing examples. This repo contains examples on basic concepts. I encourage you to try these examples on your own before looking at the solution.
clone https://github.com/Abdullah-Niaz/YT_CPP_JAVA_JS_PY_Practice_Programs