If you are a true beginner(never code), checkout CPP-Beginner-Mosh repo before using this as reference. The repo already shows the example of variable, console input and output, calculation and other basics.
CPP-Beginner-Mosh: https://github.com/tramplingpotion/CPP-Beginner-Mosh